Q
Q
quiplunar2020-07-02 16:36:06
JavaScript
quiplunar, 2020-07-02 16:36:06

Why doesn't imagemin-webpack optimize gif?

const merge = require('webpack-merge')
const dev = require('./webpack.dev.config.js')
const ImageminPlugin = require('imagemin-webpack')

module.exports = merge(dev, {
  devtool: 'none',
  plugins: [
    new ImageminPlugin({
      name: '[path][name].[ext]',
      imageminOptions: {
        plugins: [
          ['gifsicle', { interlaced: true, optimizationLevel: 3 }],
          ['mozjpeg', { quality: 73, progressive: true }],
          ['pngquant', { quality: [0.6, 0.8] }]
        ]
      }
    })
  ]
})


"imagemin-gifsicle": "^7.0.0",
"imagemin-mozjpeg": "^9.0.0",
"imagemin-pngquant": "^9.0.0",
"imagemin-svgo": "^8.0.0",
"imagemin-webpack": "^5.1.1"


png, jpeg works fine, but gif is not, not touched, I don’t understand why ((

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question