Joined March 2014
·
Posted to
You don't want to build your own minifier
over 1 year
ago
Hi there!
I think your js minifier would be easy and better to process if you build and AST and then see what kind of transformations you can do (for example, changing some variable –encapsulated on the script scope– identifiers) or just print the output to a without white spaces.
But, as you said and I agree, there are really good minifiers out there.
Another thing to keep in mind is to have a task runner for script pre-processing, like gulp or grunt.
Cheers!
Achievements
71 Karma
944 Total ProTip Views

Nephila Komaci
Have at least one original repos where PHP is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Forked
Have a project valued enough to be forked by someone else

Charity
Fork and commit to someone's open source project in need

Python
Would you expect anything less? Have at least one original repo where Python is the dominant language

Cub
Have at least one original jQuery or Prototype open source repo
Hi! If your using atom editor the merge-conflicts package is really good!
https://atom.io/packages/merge-conflicts