mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 17:27:09 +00:00
Not entirely sure why this causes dev to fail, but this fixes it.
This commit is contained in:
@@ -226,7 +226,7 @@ module.exports = function (_, env) {
|
||||
// For now we're not doing SSR.
|
||||
new HtmlPlugin({
|
||||
filename: path.join(__dirname, 'build/index.html'),
|
||||
template: '!!prerender-loader?string!src/index.html',
|
||||
template: isProd ? '!!prerender-loader?string!src/index.html' : 'src/index.html',
|
||||
minify: isProd && {
|
||||
collapseWhitespace: true,
|
||||
removeScriptTypeAttributes: true,
|
||||
|
||||
Reference in New Issue
Block a user