2.2.2 • Published 9 years ago
www-bundle v2.2.2
www-bundle
Opinionated asset pipeline for the koa front-end servers
Installation
npm install www-bundle
Usage
var bundle = require('www-bundle')
var join = require('path').join
// middleware
koa.use(bundle({ root: __dirname }))
// all the assets your frontend should listen to
bundle('react') // supports "browser" field in package.json
bundle('home.js')
bundle('home.css')
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
2.2.2
9 years ago
2.2.1
9 years ago
2.2.0
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.0
9 years ago
1.0.12
9 years ago
1.0.11
9 years ago
1.0.10
9 years ago
1.0.9
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago