ckstyle-less

0.1.1 • Public • Published

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}
 

Readme

Keywords

Package Sidebar

Install

npm i ckstyle-less

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • wangjeaf