From b114717701dee65719005b52fb187e234a565a0a Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Thu, 7 Sep 2017 14:09:28 +0200 Subject: [PATCH] Force preserveWhitespace to false to avoid SSR mismatch --- lib/builder/webpack/vue-loader.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/webpack/vue-loader.config.js b/lib/builder/webpack/vue-loader.config.js index ef36453c23..c0f70a7d20 100644 --- a/lib/builder/webpack/vue-loader.config.js +++ b/lib/builder/webpack/vue-loader.config.js @@ -4,7 +4,7 @@ export default function vueLoader () { postcss: this.options.build.postcss, extractCSS: this.options.build.extractCSS, cssSourceMap: this.options.build.cssSourceMap, - preserveWhitespace: true, + preserveWhitespace: false, loaders: { 'js': { loader: 'babel-loader',