0.1.2 • Published 10 years ago

ckstyle-autoprefixer v0.1.2

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

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}
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago