Browserify plugin for bundling styles. Allows for require('./awesome.styl')
and require('./legacy.css')
. Concats and puts those files in a separate processed CSS file which you can later minify, modify and serve as you desire.
Due to async nature of browserify, css definitions may come in random order. Something to keep in mind.
$ npm install --save-dev browserify-styles
var b = require('browserify')({ entries: './main.js' });
b.plugin(require('browserify-styles'), {
output: './path/to/my.css'
});
b.bundle();
MIT © Max Degterev