mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-21 19:19:29 +00:00
fix(preload): 开启Preload
开启preload,提高首屏加载速度
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user