Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ektx/imcss

merge import css
https://github.com/ektx/imcss

css import

Last synced: about 1 month ago
JSON representation

merge import css

Awesome Lists containing this project

README

        

# imCss

用于合并css与压缩样式表.

#### 安装

```Sh
npm install im-css
```

#### 使用

```javascript
// 引入
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);
})
```