From e7737157675b13895b880f46dbe7e81ff93ea605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Wed, 10 Jun 2020 21:47:50 +0800 Subject: [PATCH] chore: turn on the preload --- vue.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index ba5be418..aabbf651 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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