We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4cb316 commit 5a530a6Copy full SHA for 5a530a6
template/preact.config.js
@@ -2,9 +2,9 @@ const netlifyPlugin = require('preact-cli-plugin-netlify');
2
const ImageminPlugin = require('imagemin-webpack-plugin').default;
3
const imageminMozjpeg = require('imagemin-mozjpeg');
4
5
-module.exports = (config) => {
+module.exports = (config, env) => {
6
netlifyPlugin(config);
7
- config.plugins.push(new ImageminPlugin({
+ env.isProd && config.plugins.push(new ImageminPlugin({
8
from: './build/assets/**',
9
pngquant: {
10
quality: '60'
0 commit comments