Two Quick Ways To Reduce React App’s Size In Production
rajaraodv
1.4K30

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!).

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.