且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Apache 2 上运行 Angular-cli

更新时间:2022-12-07 19:02:55

问题在 index.html

the issue is in index.html <base>

请将改为因为您将配置中的 DocumentRoot 设置为该路径.

please change <base href="/root/beans3/dist/"> to <base href="/"> since you are setting the DocumentRoot in your config to that path.

或删除 -bh 并使用 ng build --prod