www-bundle
Deprecated in favor of webpack-www-bundle
Opinionated asset pipeline for the koa front-end servers
Installation
npm install www-bundle
Usage
var bundle = var join = join // middlewarekoa // all the assets your frontend should listen to // supports "browser" field in package.json
See the react example for the complete server implementation
Stack
- koa-bundle (automatic etag, compression, gzip, sourcemap support)
- browserify (babelify, envify, externalizes big assets like react and D3)
- postCSS (postcss-import, cssnext, postcss-nested)
This allows you to support both importing assets using CSS and requiring assets using JS.
License
MIT