How to restore the min.js file

Recently, I was looking at a code package given by others, but some files are xx.min.js, which looks like this after opening in vscode

How to read this way is too difficult, so select all, right-click to format the document, it doesn’t work

Through consultation with group friends, I learned:

Answer 1: It cannot be restored unless there is a map

If this file has a map, it can be restored. Well, if there is, there is a tool to restore the source code.

Answer 2: Using the sources that come with the browser , the formatting code can also be restored

 

 

 Answer 3: Formatting plugin Prettier - Code formatter

After installing the plug-in, select the code that needs to be formatted, and  alt+shift+f   restore it perfectly

  Hereby record, a little progress every day, come on!

Guess you like

Origin blog.csdn.net/qq_37299479/article/details/130148150