You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using create-react-app and react-app-rewired, I want to optimize my images assets, this is how I configure the plugins within config-overrides.js:
config.plugins=(config.plugins||[]).concat([// Make sure that the plugin is after any plugins that add imagesnewImageminPlugin({disable: process.env.NODE_ENV!=='production',// Disable during developmentplugins: [imageminGifsicle({optimizationLevel: 1,}),imageminJpegtran(),imageminPngquant(),imageminSvgo(),]}),]);
I have tried without installing all the plugin manually but I kept having nothing and it seems dependencies were not even installed.
After checking the generated configuration, this is what I have :
I am using create-react-app and react-app-rewired, I want to optimize my images assets, this is how I configure the plugins within
config-overrides.js
:I have tried without installing all the plugin manually but I kept having nothing and it seems dependencies were not even installed.
After checking the generated configuration, this is what I have :
Why does it fail to work ?
The text was updated successfully, but these errors were encountered: