im-css
v0.3.1
Published
合并import样式功能
Downloads
16
Readme
imCss
用于合并css与压缩样式表.
安装
npm install im-css
使用
// 引入
const imcss = require('im-css');
// 处理文件
imcss({
file: 'css/entry.css',
out: 'dist/out.css'
}, result => {
// 错误信息
console.error(result.error);
// 保存状态
console.warn(result.save);
// min 文件
console.log(result.min);
// 合并文件
console.log(result.data);
})