When I run ng serve
, where are the files generated and stored? I need to troubleshoot why the app works with ng serve
but not for production build.
Forgot to mention that I'm using webpack version of angular-cli.
When I run ng serve
, where are the files generated and stored? I need to troubleshoot why the app works with ng serve
but not for production build.
Forgot to mention that I'm using webpack version of angular-cli.
With the webpack version the output isn't written to disk. Webpack manages that all in memory and serves it to the browser using the webpack-dev-server
.
If you'd like to view the dev output, you will need to run ng build
and then look into the dist
directory
If your requirement is to have the files on the disk while developing, then use
ng build --configuration development --watch
which will keep and eye out for changes. This will enable you to develop angular by another hosting server (like apache OR your backend application). Note: all configuration related to --configuration development
will be available in build
section in angular.json
file which can be edited as convenient