A
A
Alexey Strukov2016-07-20 02:57:45
JavaScript
Alexey Strukov, 2016-07-20 02:57:45

What is the best way to minify js now?

I want to change the minifier. Now I'm using uglify.
I don't like how he arbitrarily removes some characters in the code, and an error about deprecated modules began to appear in npm, and apparently they just belong to him.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
N
Nazar Mokrinsky, 2016-07-20
@pm_wanderer

https://github.com/mishoo/UglifyJS2
What other signs? It is also designed specifically for code minification.
You can also play around with the Google Closure Compiler: https://closure-compiler.appspot.com/home
The latter, under certain conditions, allows you to do much more than UglifyJS

Дмитрий, 2016-07-28
@splirit

я минифицирую старым добрым gulp-uglify. Справляется отлично.

Артур Ялалтдинов, 2016-07-20
@crazy_str

yuicompressor?

A
Aset, 2016-07-20
@assets

чем не устраивает gulp?

собирайте проекты вебпаком, неужели так трудно понять, что модульный подход из node.js это будущее?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question