fix prerender-loader with multientry

This commit is contained in:
Jason Miller
2019-02-22 08:27:48 -05:00
committed by Surma
parent cb3c66fc5b
commit f24d41ba74

View File

@@ -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,