还原Webpack打包Vue项目的源代码
-
vue-cli脚手架创建一个vue项目
-
找到源码的map文件,然后下载
-
使用npm 安装reverse-sourcemap
npm install --global reverse-sourcemap
- 还原命令
reverse-sourcemap --output-dir ./app app.1c489f3ee0a84d6f8c46.js.map
reverse-sourcemap - Reverse engineering JavaScript and CSS sources from sourcemaps