- 修改package.json
{
...
"scripts": {
...
//新增
"analyz": "NODE_ENV=production npm_config_report=true npm run build",
...
},
...
}
- 启动
npm run analyz
{
...
"scripts": {
...
//新增
"analyz": "NODE_ENV=production npm_config_report=true npm run build",
...
},
...
}
npm run analyz