Skip to content

Commit

Permalink
chore: turn on the preload
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored and Trong. Pham Van - CMC Global DU1.19 committed Jul 22, 2022
1 parent b9502cb commit 40cb379
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ module.exports = {
}
},
chainWebpack(config) {
config.plugins.delete('preload') // TODO: need test
config.plugins.delete('prefetch') // TODO: need test
// it can improve the speed of the first screen, it is recommended to turn on preload
// config.plugins.delete('preload')

// when there are many pages, it will cause too many meaningless requests
config.plugins.delete('prefetch') //

// set svg-sprite-loader
config.module
Expand Down

0 comments on commit 40cb379

Please sign in to comment.