H3XED
Programming   Browse Topics

Simple & Safe JavaScript Minifier

Posted Sep 22, 2014 by Nick Vogt
This JavaScript minifier removes all line breaks, tabs, comments, trailing semi-colons, and any unnecessary spaces. It performs no sorting or compressing, so it won't have any impact on how your JavaScript executes.

Enter JavaScript to minify:



How it works


Instead of performing sweeping string replacements, this minifier goes through the JavaScript source code character-by-character. It keeps track of when it's inside a comment or string, so it won't mess up your string text. That also means that if there are comments, newlines, or multiple spaces inside of a string, it will treat them correctly as a string and not remove them.
Share This Post
Facebook Twitter

Comments


Share This Post
Facebook Twitter
H3XED © Nick Vogt   RSS   Privacy Policy   Facebook   Twitter   Google+