问题
I built an Angular app using ng build. I have the built version but I accidently deleted my code. Is there any way I can get my code back from my build version?
回答1:
Simple answer is NO. But if you really want to do it.
Step 1: Deploy the app code in the Dist folder
Step 2: Use Google Chrome Developer tools F12.
Step 3: Under debugger tab, look under webpack -> src
you will see all typescript files. you can copy and paste the code provided which would help you to at least build the structure of your application
来源:https://stackoverflow.com/questions/56197381/i-want-to-decompile-an-angular-7-built-app