Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

vue-cli2升级到vue-cli3项目,打包变得异常慢是什么原因?

最近项目从vue-cli2迁移到vue-cli3,项目中添加了ESLint约束代码;
webpack从3版本变成了4版本。
从vue-cli2中的static文件夹中有几个大的js文件迁移到了vue-cli3中的public目录下;vue.config.js里面没有配置。
vue-cli2时候的打包速度就一两分钟,到了vue-cli3变成了十几分钟。
请问会是什么原因呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

试试使用 speed-measure-webpack-plugin 看看是哪个模块打包时间最长 ;


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...