I want to disable optimization / uglify to be able to debug a problem. Anything using the webpack configuration didn't work. Any advice?
To disable uglify (which is the default minimizer), you can do the following (this would be for a single environment's config file):
const environment = require('./environment')
const config = environment.toWebpackConfig();
delete(config.optimization.minimizer)
module.exports = config
in addition to any other modifications you make to environment or want to merge in.
That's what I was looking for. Thanks.
I needed config.optimization.minimize = false too
Most helpful comment
To disable uglify (which is the default minimizer), you can do the following (this would be for a single environment's config file):
in addition to any other modifications you make to environment or want to merge in.