Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upUglify or Minimify the standard js files #366
Comments
juliomatcom
changed the title
Uglify - Minimify - and others
Uglify - Minimify the standard js files
Dec 22, 2015
juliomatcom
changed the title
Uglify - Minimify the standard js files
Uglify or Minimify the standard js files
Dec 22, 2015
This comment has been minimized.
This comment has been minimized.
|
I would stay away from any minification tool or uglify tool that does not ensure correct ASI during its transform. Semicolons are a necessary for those types of tools to work. So the answer is... any of them (that work presumably)! Personally I would look for one that works well with my build step via browserify e.g. https://github.com/hughsk/uglifyify (not I have not used this or endorse it, but it looks like something I would try out). Does that answer your question? |
This comment has been minimized.
This comment has been minimized.
|
Any modern minification tool would suffice. Most today would parse based on
On Wednesday, December 23, 2015, Bret Comnes notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
Is possible to get the original ASI that use javascript engine with some api ? Thanks |
This comment has been minimized.
This comment has been minimized.
|
I have not heard of a module or API that lets you patch in directly to V8's ASI capabilities. Googling, I came across http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding which actually addresses your first question:
We have https://github.com/Flet/semistandard for people working on projects that need semicolons for political or style reasons. Not sure if that helps. If you come up with anything cool that you want to share just open up an issue or hop onto #standard on freenode. |
This comment has been minimized.
This comment has been minimized.
|
+1 thanks @bcomnes |
juliomatcom
closed this
Dec 23, 2015
This comment has been minimized.
This comment has been minimized.
This might help: http://esprima.org/demo/parse.html# |
This comment has been minimized.
This comment has been minimized.
|
All the popular minification tools will work just fine on code that passes |
juliomatcom commentedDec 22, 2015
Hello,
Sorry, this is not a real issue, just a concern, what do you suggest to minimify or uglify the js files without the semicolons ? any package or some thing in the comunity?
Thank you