uglifycss

npm install uglifycss -g

https://www.npmjs.com/package/uglifycss

uglifycss [options] [filename] […] > output

$ npm install uglifycss -g

$ npm install uglifycss

$ git clone git://github.com/fmarcia/UglifyCSS.git

$ uglifycss [options] [filename] […] > output


var uglifycss = require('uglifycss');

var uglified = uglifycss.processFiles(
    [ 'file1', 'file2' ],
    { maxLineLen: 500, expandVars: true }
);

console.log(uglified);

uglifycss muuri.kanban.css –output muuri.kanban.min.css

uglify-js

https://www.npmjs.com/package/uglify-js

npm install uglify-js -g

uglifyjs muuri.grid.js -o muuri.grid.min.js

文档更新时间: 2022-10-27 09:43   作者:admin