I'm looking into webpack and also angular-cli, and even though angular-cli is supposed to use webpack, I can't see any webpack.config.js
file when I create a new project with ng new
Does anybody know how does this work in angular-cli?
To enable custom webpack configurations, open the angular. json configuration file. Locate the line "builder": "@angular-devkit/build-angular:browser" inside the architect.
To answer your specific question, the webpack configuration is stored wherever your global node_modules are installed; on Windows this is typically %AppData%\Roaming\npm\node_modules\powerbi-visuals-tools\lib\webpack. config. js.
The Angular CLI can create a new Angular project and it will handle the webpack configuration. However, there are situations where you will want to add custom webpack functionality.
I found this thread about configuring webpack in angular-cli. It seems webpack is not configureable at the moment, but they are working on it.
You can use $ ng eject
to generate webpack.config.js in the root folder of your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With