- vue-cli、create-react-app 项目如何查看打包分析?
项目 | 如何查看打包分析 |
---|---|
vue-cli 创建的项目 | 已经集成 webpack-bundle-analyzer,运行npm run build --report |
create-react-app 创建的项目 | 需要安装source-map-explorer,地址:https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#analyzing-the-bundle-size |