Skip to content

Commit f8bfd3c

Browse files
authored
Update preact.config.js
1 parent 9eaa46e commit f8bfd3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preact.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const imageminMozjpeg = require('imagemin-mozjpeg');
44

55
module.exports = (config, env) => {
66
netlifyPlugin(config);
7-
env.isProd && config.plugins.push(new ImageminPlugin({
7+
env.production && !env.ssr && config.plugins.push(new ImageminPlugin({
88
from: './build/assets/**',
99
pngquant: {
1010
quality: '60'

0 commit comments

Comments
 (0)