2.2.2 • Published 10 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
10 years ago
2.2.1
10 years ago
2.2.0
10 years ago
2.1.1
10 years ago
2.1.0
10 years ago
2.0.0
10 years ago
1.0.12
10 years ago
1.0.11
10 years ago
1.0.10
10 years ago
1.0.9
10 years ago
1.0.8
10 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago