DEV Community

Discussion on: Improve performance in an Angular app Using Brotli and Gzip Text Compression

Collapse
 
ibrahimhamad97 profile image
IbrahimHamad97

Hi There.
When I try to add
"options": {
"customWebpackConfig": {
"path": "src/custom-webpack.config.js",
"replaceDuplicatePlugins": true
}
}
I get a warning saying "Property customWebpackConfig is not allowed." and when I try to run it I get an error, any idea what to change to make it work?

Collapse
 
oyemade profile image
Oyemade Oyemaja

Hello, there should already be an options property, you just have to add customWebpackConfig body under it. If you can send a screenshot i can help debug better.

Collapse
 
francisp profile image
Francis • Edited

Hi,

in angular.json, try to replace

"builder": "@angular-devkit/build-angular:browser",
Enter fullscreen mode Exit fullscreen mode

replace with

"builder": "@angular-builders/custom-webpack:browser",
Enter fullscreen mode Exit fullscreen mode

for more info
developapa.com/angular-custom-webp...