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 committed Jun 10, 2020
1 parent 2ef4949 commit 0bf61aa
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 0bf61aa

Please sign in to comment.