Basically just brings back the features that were originally in browserify v1
This is how you use it in an Express project.
var browserify_express = ;var bundle =;app;
In this example:
- watch for changes to files in the directory defined in
watch, this can also just watch a single file.
- make the bundle accessible at '/js/myapp.js'
- minify the bundle using uglify-js2
- print messages to the console to show re-bundling and times
- pass opts.debug to browserify.bundle
- pass recursive:false to node-watch (see all options for node-watch)
- write the file to disk at the specified path
This is supported by default however all your require()'s must include the .coffee extensions, it will not pick it up by default.