I added a small test before replacing the minimizer in order to replace it only when it is actually used.
On my setup I currently have an other craco override that remove minification in some cases to speed up the build time.
With this change, minification remains disabled as expected.
I added a small test before replacing the minimizer in order to replace it only when it is actually used.
On my setup I currently have an other craco override that remove minification in some cases to speed up the build time. With this change, minification remains disabled as expected.