browserify-dev-middleware
Middleware to compile browserify files on request for development purpose.
Example
Say you have a folder /assets that has a /assets/commit.js file using browserify.
app;
In your view (using jade)
html head body script( src='/commits.js' )
Browserify Dev Middleware will compile /assets/commits.js and serve it on request.
Adding transforms
Add transforms by passing it as an option.
app;
Specify global transforms too.
app;
Or pass any browserify options in
app;
Or intercept the bundle and act on it programatically
app;
Contributing
Please fork the project and submit a pull request with tests. Install node modules npm install
and run tests with npm test
.
License
MIT