https://github.com/lwd-technology/react-app-rewire-imagemin-plugin
Add imagemin-webpack-plugin to a react-app-rewired config.
https://github.com/lwd-technology/react-app-rewire-imagemin-plugin
imagemin imagemin-webpack-plugin react-app-rewired webpack
Last synced: about 1 year ago
JSON representation
Add imagemin-webpack-plugin to a react-app-rewired config.
- Host: GitHub
- URL: https://github.com/lwd-technology/react-app-rewire-imagemin-plugin
- Owner: lwd-technology
- License: mit
- Created: 2017-09-22T22:32:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-26T18:19:53.000Z (over 5 years ago)
- Last Synced: 2025-03-29T11:34:31.817Z (over 1 year ago)
- Topics: imagemin, imagemin-webpack-plugin, react-app-rewired, webpack
- Language: JavaScript
- Size: 35.2 KB
- Stars: 2
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-app-rewire-imagemin-plugin
Add [`imagemin-webpack-plugin`](https://github.com/Klathmon/imagemin-webpack-plugin) to a [`react-app-rewired`](https://github.com/timarney/react-app-rewired) config.
```js
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'
}
})
```