Home

Awesome

DEPRECATED. Use browserify-postcss instead.


cssnextify Build Status

A Browserify transform for css & cssnext.

Installation

This package is available as NPM package.

NPM

$ npm install cssnextify --save

Usage

Require your css files from script:

// main.js

require('./style.css')

CLI

$ browserify -t cssnextify main.js > bundle.js

Code

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'))