Override webpack optimization
See original GitHub issueHi, I need some help trying to override the settings in TerserPlugin to disable mangling. Is this supported currently? I’ve tried setting up something like this but it doesn’t seem to take effect… Not 100% sure I’m doing it correctly.
webpack: {
optimization: {
minimizer: [
new TerserPlugin({
terserOptions: {
mangle: false
...
The configuration I’m trying to modify is here https://github.com/facebook/create-react-app/blob/49e258b4a6d04fb7e3542d7a060c6dcad4093564/packages/react-scripts/config/webpack.config.js#L182
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Override webpack optimization · Issue #44 · dilanx/craco
Hi, I need some help trying to override the settings in TerserPlugin to disable mangling. Is this supported currently? ... Override webpack optimization...
Read more >Optimization - webpack
Allows you to override the default minimizer by providing a different one or more customized TerserPlugin instances. ... const TerserPlugin = require('terser- ...
Read more >Webpack build task overriding optimizations - Stack Overflow
Problem: The production build task is minifying files but then overriding those with unminified files. · Context: I'm using an environment ...
Read more >Overriding the Create-React-App Webpack Configuration ...
json , I created a build. js file to override the Webpack build: // in ./build. js const rewire = require('rewire'); const defaults...
Read more >An in-depth guide to performance optimization with webpack
A good understanding of webpack's underlying principles can vastly improve your bundle size, application performance, and user experience.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @carlosfunk
Yes it is supported but you have to use
or
hey guys, in order to change the terser config, use the plugins section of craco:
here I find the index of the terser plugin by searching for
terserOptions
then I use that object to add/override the
reserved
option.I hope that helps!