ng-docs.github.io icon indicating copy to clipboard operation
ng-docs.github.io copied to clipboard

Angular 部署

Open yangruiqing opened this issue 6 years ago • 1 comments

ng build --prod 之后 index.html 文件内容如下

Wopsun 部署在iis7.5上 在服务器上用localhost:19010 可以访问,用IP 加载不出来内容,

yangruiqing avatar Mar 28 '19 01:03 yangruiqing

我估计你的项目不是放在根目录的,build 的时候需要设定一个 --base-href 属性。 https://github.com/angular/angular-cli/wiki/build#base-tag-handling-in-indexhtml

at77ms avatar Apr 23 '19 13:04 at77ms