Module management with
browserify
Modules are scoped in their own namespace
Uses CommonJS standard interface
Dependencies defined using require function
Modules are defined by assigning an object to
module.exports
Exactly like node.js
var $ = require(‘jquery’);
$(‘body’).html(“Browserify saves the day”);
main.js
Where to from here?
Detailed documentation: http://bit.ly/1kbozFB
grunt-browserify: wrapper for integration into Grunt
build with other tools, like uglify.
exorcist: extract source maps for browsers. Very useful,
terrible name.
watchify: CLI file watcher for performing automatic
builds during development.