Jeremy Jeremy - 1 year ago 120
Javascript Question

Beautify and restore variable names to a js file

After using grunt.js to minify my code, how would I beautify the code again and restore the variable names (as if I had never minified it in the first place)?

I have found a lot on here about but that doesn't help me if I need all the variable names restored

Answer Source

Generally you probably want to save a copy of the original (un-minified/ un-uglified) code, but if you do need to revert back from minified code you could use source maps. Check 'em out here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download