1.0.1 • Published 7 years ago

react-app-rewire-imagemin-plugin v1.0.1

Weekly downloads
154
License
MIT
Repository
github
Last release
7 years ago

react-app-rewire-appcache-plugin

Add imagemin-webpack-plugin to a react-app-rewired config.

const rewireImageminPlugin = require('react-app-rewire-imagemin-plugin')

// Optimize images in the build
config = rewireImageminPlugin(config, env, {
  disable: process.env.NODE_ENV !== 'production',
  pngquant: {
    quality: '95-100'
  }
})