Small script for development + builds with browserify.
Uses loose-envify
for faster inlining and cross-env
to handle windows/unix shells.
Dev features:
- fast rebuilds w/ watchify, LiveReload, syntax errors in DOM, etc.
Build features:
- uglify, simple dead code elimination, optimized bundle.
npm install --save-dev cross-env browserify budo babelify loose-envify bundle-collapser uglify-js unreachable-branch-transform