vue-cli、create-react-app 项目如何查看打包分析?

  • 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

推荐使用 webpack-bundle-analyzer,详细使用说明:http://www.cnblogs.com/cag2050/p/9184352.html