Where are files stored when running ng serve?

时间:2016-08-31 18:39:04

标签: angular 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.

1 个答案:

答案 0 :(得分:18)

使用webpack版本时,输出不会写入磁盘。 Webpack使用webpack-dev-server管理所有内存并将其提供给浏览器。

如果您想查看开发输出,则需要运行ng build然后查看dist目录