【发布时间】:2017-09-10 15:11:05
【问题描述】:
我在 mac OS Sierra 的本地服务器 apache 中打开了我的构建 angular 项目(使用 Webpack 弹出),我发现 index.html 中的资源文件存在问题,但是当我在 Ubuntu 项目中运行相同的构建时正确无误。
我在 mac OS Sierra 10.12.4 上的默认服务器 Apache 中运行构建项目: Result in mac OS Sierra 10.12.4 with default Apache (当我在macOS中使用MAMP PRO时,加载文件的状态是404)
当我在 Ubuntu 16.04 LTS 中运行相同的构建项目时: Result in Ubuntu 16.04 LTS with default Apache
使用的版本:
- 角度:2.4.8
- Angular CLI:1.0.0-rc.0
- webpack:2.2.1
【问题讨论】:
-
更改基础 href="."为你工作?
标签: angularjs apache webpack macos-sierra apache2.4