Przeglądaj źródła

Disable prefetch plugin

Optimization may be done later.
The settings of this plugin are somehow not working (tbi).
It wants to prefetch everything as of now, probably since the total size is small.
Ecconia 7 lat temu
rodzic
commit
d244025736
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      vue.config.js

+ 10 - 0
vue.config.js

@@ -0,0 +1,10 @@
+module.exports = {
+	chainWebpack: (config) => {
+		config.plugins.delete('prefetch')
+		//Doesn't work, to be investigated:
+		//config.plugin('prefetch').tap(options => {
+		//	options.fileBlackList = ['./views/Impressum.js']
+		//	return options
+		//})
+	}
+}