Simple Browserify middleware for Express with basic in-memory caching and watchify support.
I created this as a Gist instead of Node module because Browserify bundles are one of those things better left customizable. This function, as it stands, is very limited. It has no support for things like transforms and plugins. Copy this into your app and add any desired functionality there.
Depends on:
- Browserify - tested on v6.1, expected to work on v4.0+
- Watchify - tested on v2.0, expected to work on v1.0+. Watchify is optional. Remove watchify
require
statement if not desired. - Express - tested with v4.9, expected to work with v3.0+