fix(preload): 开启Preload

开启preload,提高首屏加载速度
This commit is contained in:
OrangeM21
2020-07-28 12:20:36 +08:00
committed by 老广
parent a63b07cf2e
commit 066d81446c

View File

@@ -71,8 +71,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