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' }),