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.
答案 0 :(得分:18)
使用webpack版本时,输出不会写入磁盘。 Webpack使用webpack-dev-server
管理所有内存并将其提供给浏览器。
如果您想查看开发输出,则需要运行ng build
然后查看dist
目录