[CSS] 使用uglifycss压缩css
2016-03-02 本文已影响104人
何幻
语法:uglifycss [options] [filename] [...] > output
例如:
node ../thirdpart/uglifycss/node_modules/uglifycss/uglifycss ^
../css/input.css ^
../thirdpart/jqueryplugin/recordlist/recordlist_init.css ^
../thirdpart/jqueryplugin/recordlist/recordlist_data.css ^
../thirdpart/jqueryplugin/recordlist/recordlist_operation.css ^
../thirdpart/jqueryplugin/recordlist/recordlist_page.css ^
../css/content/contentlist.css > ^
../css/content/contentlist.min.css
(1)安装:npm install uglify-css
(2)倒数第二行的>
表示输出到文件,是uglifycss的语法。
(3)github地址:https://github.com/fmarcia/UglifyCSS