ckstyle-autoprefixer
v0.1.2
Published
Autoprefixer Plugin for CKStyle
Downloads
8
Readme
ckstyle-autoprefixer
Autoprefixer Plugin for CKStyle
Usage
npm install ckstyle-autoprefixer
var prefixer = require('ckstyle-autoprefixer')
var css = '.b {box-sizing: border-box;}'
var res = CKStyle.start(css, {
fileName: 'a.css'
})
.plugin(prefixer, {
a: 1
})
.fix(function(res) {
console.log(res) // ==> .b {
// ==> -moz-box-sizing: border-box;
// ==> box-sizing: border-box;
// ==> }
})
.compress()
.output(function(res) {
console.log(res) // ==> .b{-moz-box-sizing:border-box;box-sizing:border-box}
})
console.log(res) // ==> .b{-moz-box-sizing:border-box;box-sizing:border-box}