Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ektx/imcss
- Owner: ektx
- Created: 2017-06-28T01:47:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T09:57:30.000Z (over 7 years ago)
- Last Synced: 2024-08-10T00:05:24.653Z (5 months ago)
- Topics: css, import
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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);
})
```