Pārlūkot izejas kodu

chore: turn on the preload

花裤衩 4 gadi atpakaļ
vecāks
revīzija
efc976ae5a
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 5 2
      vue.config.js

+ 5 - 2
vue.config.js

@@ -49,8 +49,11 @@ module.exports = {
49 49
     }
50 50
   },
51 51
   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')
54 57
 
55 58
     // set svg-sprite-loader
56 59
     config.module