0.1.1 • Published 10 years ago

ckstyle-less v0.1.1

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

ckstyle-autoprefixer

Autoprefixer Plugin for CKStyle

Usage

npm install ckstyle-less

var less = require('ckstyle-less')

var css = '.a { .b {width: 1 + 1;} }'


var res = CKStyle.start(css, {
        fileName: 'a.css'
    })
    .plugin(less, {
        a: 1
    })
    .fix(function(res) {
        console.log(res)  // ==> .a .b {
                          // ==>      width: 2;
                          // ==> }
    })
    .compress()
    .output(function(res) {
        console.log(res)  // ==>  .a .b{width:2}
    })

console.log(res)  // ==> .a .b{width:2}
0.1.1

10 years ago

0.1.0

10 years ago