From f24d41ba7407dc32b44573ea70e4f5a80e2d6585 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Fri, 22 Feb 2019 08:27:48 -0500 Subject: [PATCH] fix prerender-loader with multientry --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 74364e88..9e721980 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -231,7 +231,7 @@ module.exports = async function (_, env) { // For now we're not doing SSR. new HtmlPlugin({ filename: path.join(__dirname, 'build/index.html'), - template: isProd ? '!!prerender-loader?string!src/index.html' : 'src/index.html', + template: isProd ? '!!prerender-loader?string&entry=./src/index!src/index.html' : 'src/index.html', minify: isProd && { collapseWhitespace: true, removeScriptTypeAttributes: true,