Two Quick Ways To Reduce React App’s Size In Production
rajaraodv
2.6K40

For those finding little or no reduction in size (or a slight increase!)…

You also need to check/change:

module.exports = {
 devtool: ‘inline-source-map’,

to:

module.exports = {
 devtool: ‘source-map’,

As having ‘inline-source-map’ puts the bundle.js.map in the bundle.js file (obvious if you think about it but easy to overlook!).