当前位置: 动力学知识库 > 问答 > 编程问答 >

angular cli - Where does `ng serve` output files to?

问题描述:

ng serve is not building to the path that I have set in my angular-cli.json in apps[0].outDir.

ng build works correctly and builds to the path that I have specified.

网友答案:

It's correct that ng serve builds in memory.

AngularCLI does not have support for running a server and writing to disk at the same time.

If you are using your own server, etc., you can use ng build --watch, which will watch files just like ng serve, but will write them to disk, and will not run a server.

网友答案:

Output is not written to disk when using ng serve. Everything will be kept in memory. Source: Where are files stored when running ng serve?

分享给朋友:
您可能感兴趣的文章:
随机阅读: