【发布时间】:2019-04-06 11:36:49
【问题描述】:
Angular CLI:7.2.3 节点:10.14.1 操作系统:达尔文 x64 角度:7.2.2
我当前的 index.html 的基本 href 设置为 <base href="/" />,我的应用程序在 http://localhost:port/ 运行
是否可以让我的应用在本地和生产构建中同时在 http://localhost:port/ 和 http://localhost:port/something/ 上运行,而无需在构建时设置 --base-href 标志或 ng serve ?
【问题讨论】: