Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 460 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 460 Bytes

Browserify transform plugin for CSSX

Installation

npm i browserify-cssx

Usage

var browserify = require('browserify');
var cssxTransform = require('../../packages/browserify-cssx');

var CSSXTranspilerOptions = {
  minify: false
};

var b = browserify('src/index.js', {
  transform: [ cssxTransform ],
  cssx: CSSXTranspilerOptions
});
b.bundle(function (err, buff) {
  var code = buff.toString('utf8');
  console.log(code);
});