Browser builds¶
The repository's browser build script accepts an entry point and output path:
npm run build:browser -- \
--entry examples/watershed/web/watershed-web.js \
--out examples/watershed/web/watershed.bundle.js
The underlying CLI can also be invoked directly:
node core/browser/build.js \
--entry examples/watershed/web/watershed-web.js \
--out examples/watershed/web/watershed.bundle.js
Add --minify for a minified bundle. Sourcemaps are enabled by default by
the builder. The watershed:build script is a repository-specific example of
the same shared builder; it is not a separate browser toolchain.