A Browserify transform for css & cssnext.
This package is available as NPM package.
$ npm install cssnextify --save
Require your css files from script:
// main.js
require('./style.css')
$ browserify -t cssnextify main.js > bundle.js
var fs = require('fs')
var browserify = require('browserify')
var cssnextify = require('cssnextify')
var bundler = browserify()
bundler.add(__dirname + '/main.js')
bundler.transform(cssnextify)
bundler.bundle().pipe(fs.createWriteStream(__dirname + '/bundle.js'))