Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e773715

Browse files
committed
chore: turn on the preload
1 parent 9975a7a commit e773715

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vue.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ module.exports = {
4949
}
5050
},
5151
chainWebpack(config) {
52-
config.plugins.delete('preload') // TODO: need test
53-
config.plugins.delete('prefetch') // TODO: need test
52+
// it can improve the speed of the first screen, it is recommended to turn on preload
53+
// config.plugins.delete('preload')
54+
55+
// when there are many pages, it will cause too many meaningless requests
56+
config.plugins.delete('prefetch') //
5457

5558
// set svg-sprite-loader
5659
config.module

0 commit comments

Comments
 (0)