csso
csso 介绍
cssO (css 优化器) 是一个与众不同的css代码压缩器。相比其他压缩器,除了常用的压缩技术外,它还会通过重建css代码结构信息的优化技术从而使文件压缩到更小的尺寸。
安装
npm install csso
使用
var csso = require('csso');
var minifiedcss = csso.minify('.test { color: #ff0000; }').css;
console.log(minifiedCss);
// .test{color:red}
网站地址:https://css.github.io/csso/csso.html
GitHub:https://github.com/css/csso
网站描述:一个与众不同的CSS代码压缩器