webpack-bundle-analyzer
The webpack visualization plug-in is used to view how many packages have been packaged, the volume of each package and the situation inside the package.
/**启动查看/
npm run build --report
The result is an error npm ERR! missing script: build , and later found that the scripts parameter in package.json is
correct:
npm run build:test --report
/*npm 允许在package.json文件里面,使用scripts字段定义脚本命令。*/
Access address: http://localhost:8888/