Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angular-cli: how do I configure webpack?

Ok, I'm very pleased that angular-cli exists. Hooray for standards!

However, I am a little disturbed that webpack is operating somewhere in the depths of the angular-cli code and there is not, for example, a webpack.config.js.

What gives? How do I configure loaders? Plugins? Is ng serve using the webpack server in the background?

Can someone elucidate?

like image 789
serlingpa Avatar asked Sep 08 '26 06:09

serlingpa


2 Answers

There is no way to configure webpack with angular-cli presently and it sounds like it's not coming soon: https://github.com/angular/angular-cli/issues/1656

like image 139
Lucas Tétreault Avatar answered Sep 11 '26 21:09

Lucas Tétreault


You can do that things from cli.json file inside your project.

like image 34
Mertcan Diken Avatar answered Sep 11 '26 22:09

Mertcan Diken