buildbro
v0.1.4
Published
Browserify build tool and server
Downloads
36
Readme
BUILD IT BRO!!
An easy commandline tool to configure, build, and serve Browserify projects
buildbro --help
for usage information
Options:
-h, --help output usage information
-V, --version output the version number
-e, --es6 Transform es6 code to es5 using 6to5
-d, --debug Include source files
-f, --fullpaths Expand Browserify ids to full paths
-m, --minify Minify the resulting bundle
-g --minifyglobal Minify and include all node_modules when minifying - may cause hard to trace errors
-b, --brfs Use brfs transform
-j, --jshint Run jshint before every build
-w, --watch Watch files for changes and update bundle
-s, --serve [folder] Serve up files in the given directory
-p, --port [port] Set which port should be used when using the -s, --serve option
minifyglobal minifyglobal will run the UglifyJS2 transform on all required node modules.
Try falling back to the minify
flag if you encountering errors during build.
Example:
buildbro --es6 --brfs --jshint --watch --serve dist --port 3000 ./index.js ./dist/bundle-min.js