UglifyJS online demo

The UglifyJS2 API documentation pages are more or less complete. I also worked on an online demo which allows you to minify scripts from your browser; the intended use case is just to demonstrate features of UglifyJS like compressor/beautifier options and source maps. You can minify a script and click some token in the minified output and the editor will move to the original position of that token in the initial code. You can easily see all the warnings that UglifyJS dumps, and click them to go to the original location and fix them.

It's only tested with Chrome and Firefox. Should work with Safari too, but I'm pretty sure it won't work in Opera or IE. Try it out! If it doesn't appear to work and you visited this website recently, please clear the cache. If you have any comments or suggestions I'd love to know about it!

7 comments. This is HOT!

Add your comment

# anonymous
2013-01-24 03:44
I didn't have any problem using this demo with Opera.
# Mishoo
2013-01-24 12:42
Indeed, it should be fine for the most part, but you won't be able to edit code in Ymacs (the fancy editor that shows up on the left side after you press Uglify). It works somewhat with Opera/IE, but it's buggy.
# Deniz Aktas
2013-08-18 23:08
This is fairly incredible tool. I'm typing this because i just want to thank.
# Henkie
2014-03-27 17:37
Opera has Webkit these days so it will work just fine there now!
# Bhavesh
2015-11-03 00:28
hi am using command line option uglifyjs hello.js -o hello.min.js ...i believe this will NOT minify into utf-8 . Can you please confirm ? - thanks
# Bhavesh
2015-11-03 00:41
also can you please confirm the same for the online demo ?
# Bhavesh
2015-11-03 17:58
does following seem right ? uglifyjs -b ascii-only=true,beautify=false tinymce.js -o tinymce.min.js In the documentation I did not find an example of specifying multiple options. I referred to Documentation : https://github.com/mishoo/UglifyJS2#readme – Beautifier section
Oct
16
2012

UglifyJS online demo

  • Published: 2012-10-16
  • Modified: 2012-10-16 18:03
  • By: Mishoo
  • Tags: uglifyjs, javascript, minification
  • Comments: 7 (add)