Answer the question
In order to leave comments, you need to log in
Why does imagemin-webpack-plugin freeze on png?
When working with jpeg, everything is fine, but as png appears, the eternal build (hangs).
Here is webpack.config.js:
const merge = require('webpack-merge')
const dev = require('./webpack.dev.config.js')
const imageminMozjpeg = require('imagemin-mozjpeg')
const imageminPngquant = require('imagemin-pngquant')
const ImageminPlugin = require('imagemin-webpack-plugin').default
module.exports = merge(dev, {
devtool: 'none',
plugins: [
new ImageminPlugin({
plugins: [
imageminMozjpeg({
quality: 73,
progressive: true
}),
imageminPngquant({
quality: [0.6, 0.8]
})
]
})
]
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question