From 996613ce8bbebeba3991395d3e09c6da5ee79e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 23 Feb 2017 13:43:57 +0000 Subject: [PATCH] prefetch only in production --- lib/webpack/client.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webpack/client.config.js b/lib/webpack/client.config.js index 5df452bc07..6ea9ac2d27 100644 --- a/lib/webpack/client.config.js +++ b/lib/webpack/client.config.js @@ -64,7 +64,7 @@ export default function () { }) ]) - if (this.options.performance.prefetch === true) { + if (!this.dev && this.options.performance.prefetch === true) { // Add prefetch code-splitted routes config.plugins.push( new PreloadWebpackPlugin({