From b4d74b417c418c4d8ae66f8829b611b3970f3ea0 Mon Sep 17 00:00:00 2001 From: yoyo837 Date: Wed, 30 May 2018 10:57:03 +0800 Subject: [PATCH] minify: true => fix gap between inline-block labels --- lib/builder/webpack/client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/builder/webpack/client.js b/lib/builder/webpack/client.js index 706419e21b..378acc3982 100644 --- a/lib/builder/webpack/client.js +++ b/lib/builder/webpack/client.js @@ -32,6 +32,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig { new HTMLPlugin({ filename: 'index.ssr.html', template: this.options.appTemplatePath, + minify: true, inject: false // Resources will be injected using bundleRenderer }) ) @@ -41,6 +42,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig { new HTMLPlugin({ filename: 'index.spa.html', template: this.options.appTemplatePath, + minify: true, inject: true, chunksSortMode: 'dependency' }),