minifier cssgzmin unminify cssunminifier
installl as root
Terminal:
npm install -g minifier cssgzmin unminify cssunminifier js-beautify uglify-js
create a new symbolic link for different minutes with es5 or es6
Terminal:
ln -s /usr/lib/node_modules/uglify-js/bin/uglifyjs /usr/bin/uglifyjsEs5
uglify to es6 (experimental)
Terminal:
npm install -g uglify-js-es6
Terminal:
ln -s /usr/lib/node_modules/uglify-js-es6/bin/uglifyjs /usr/bin/uglifyjsEs6
MIN
min css
Terminal:
cssgzmin /tmp/all.css /tmp/all-min.css
min js
Terminal:
minify /tmp/app.js > /tmp/app-backup.js
or
Terminal:
uglifyjsEs5 --compress -- /tmp/app.js > /tmp/app-min.js
ES6
Terminal:
uglifyjsEs6 --compress -- /tmp/app.js > /tmp/app-min.js
with the --mangle parameter replaces the words for a shorter one
Terminal:
uglifyjsEs6 --compress --mangle -- /tmp/app.js > /tmp/app-min.js
UNMIN
unmin css
Terminal:
cssunminifier /tmp/all.css /tmp/all-unmin.css
or
Terminal:
css-beautify /tmp/all.css /tmp/all-unmin.css
unmin js
Terminal:
unminify /tmp/app.js > /tmp/app-backup.js
or
Terminal:
js-beautify /tmp/app.js > /tmp/app-backup.js
Html5
Terminal:
html-beautify /tmp/code.html > /tmp/code.html
0 comentarios :