Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to see Angular's webpack configuration?

I'm experimenting with @angular-builders/custom-webpack but sometimes it's hard to know what needs to be changed, as I can't see the original Angular-created configuration.

I couldn't find a webpack configuration file (other than some test cases) in the angular/angular or the angular/angular-cli source so I'm guessing it's somehow generated on the fly based on angular.json.

Is there some way to print out / dump this full config? Even if it involves a temporary hack/workaround.

Versions in-use:

"@angular-builders/custom-webpack": "^9.2.0",
"@angular-devkit/build-angular": "~0.901.13",
"@angular/cli": "^9.1.13"
like image 504
Edward Prendergast Avatar asked Sep 06 '25 03:09

Edward Prendergast


1 Answers

EDIT: as discussed in the comments, the current webpack config can be found here


Up to the version 1.7 of the CLI you could use ng eject (see this for example, if you want to try it in an older project), but this has been disabled now AFAIK.

I have no experience myself with custom webpack configs, but you might want to have a look at 'ng eject alternatives', like this one for example. Or perhaps you can find information on this CLI-issue

like image 189
PLB Avatar answered Sep 07 '25 23:09

PLB