How To Unminify The Js Files?
Solution 1:
You can't unminify a minified file. Minification is a desctructive operation and involves loss of information.
For example, if you have a function with a descriptive name, after minifcation that name will be substitute with a meaningless one. There's no way to go back from this operation.
You can use a beautifier to make it more readable, but you will have a weighty job of reverse engineering in order to understand what the code means.
Solution 2:
source-maps are what you want. in the process of making a minified js file, you should get a source-map file, too (it depends on what tool you use for minification).
Then using source-map library you can recover the original files.
If the source-map
file does include the minified source, this file is enough to unminify. otherwise, you have to tell the library the minified source manually.
More info, on the library's Github page.
Post a Comment for "How To Unminify The Js Files?"