mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
fix prerender-loader with multientry
This commit is contained in:
@@ -231,7 +231,7 @@ module.exports = async function (_, env) {
|
|||||||
// For now we're not doing SSR.
|
// For now we're not doing SSR.
|
||||||
new HtmlPlugin({
|
new HtmlPlugin({
|
||||||
filename: path.join(__dirname, 'build/index.html'),
|
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 && {
|
minify: isProd && {
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
removeScriptTypeAttributes: true,
|
removeScriptTypeAttributes: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user