资源介绍
postcss-basscss
PostCSS插件的
将Basscss模块添加到样式表的开头,以增强Basscss的不变性并删除ID选择器。
用法
var fs = require ( 'fs' )
var postcss = require ( 'postcss' )
var basscss = require ( 'postcss-basscss' )
var src = fs . readFileSync ( 'css/input.css' , 'utf8' )
var options = {
customProperties : {
variables : {
'font-family' : '"Avenir Next", "Helvetica Neue", sans-serif'
}
}
}
var output = postcss (