Skip to content

Commit 5a530a6

Browse files
authored
Update preact.config.js
1 parent c4cb316 commit 5a530a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/preact.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const netlifyPlugin = require('preact-cli-plugin-netlify');
22
const ImageminPlugin = require('imagemin-webpack-plugin').default;
33
const imageminMozjpeg = require('imagemin-mozjpeg');
44

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy