0
点赞
收藏
分享

微信扫一扫

React 学习——打包后,包体积可视化

洛茄 2024-08-17 阅读 18

1、安装插件 (  source-map-explorer 

npm i source-map-explorer

2、在配置文件package.json中加入  ( "analyze": "source-map-explorer build/static/js/*.js" ),位置截图

"analyze": "source-map-explorer build/static/js/*.js"

3、用命令启动查看  ( npm run analyze )

4、如果安装 配置都正确的话,用命令查看后,会自动打开浏览器。展示截图如下

举报

相关推荐

0 条评论