Jeremy Jeremy - 9 months ago 72
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.