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.4k views
in Technique[技术] by (71.8m points)

`vue-cli3`升级到`vue/cli4`后,js、css没有按需加载,也没有压缩合并

把项目成功从从vue-cli3升级到vue/cli4 后发现访问首页的时候,请求有将近1000个,但是老版本的时候8个左右,看了下打包出来的index.html文件,老板的映入js、css一共才5个文件,但是新版的映引入的css、js特别多

image


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

1 Answer

0 votes
by (71.8m points)

我新建了一个项目,这个好像不影响,以为一个是preload,次要的是prefetch

image.png


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

...