/browserify-styles

Browserify plugin for bundling styles

Primary LanguageJavaScriptMIT LicenseMIT

Browserify styles

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.

Install

$ npm install --save-dev browserify-styles

Usage

var b = require('browserify')({ entries: './main.js' });

b.plugin(require('browserify-styles'), {
  output: './path/to/my.css'
});

b.bundle();

License

MIT © Max Degterev