webpack-开发-使用 source map
1.环境准备和命令 npm init -y npm install --save-dev webpack npm install --save-dev webpack-cli npm install --save lodash npm install --save-dev html-webpack-plugin npm install clean-webpack-plugin --save-dev npm run build 2.目录 3.代码文件 dist/index.html(这个文件是自动生成的) <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Output Management</title> </head> <body> <script type="text/javascript" src="app.bundle.js"></script> <script type="text/javascript" src="print.bundle.js"></script> </body> </html> src/index.js import _ from 'lodash'; import printMe from './print.js'; function component() { var