我正在尝试在apache服务器tutorial found from youtube
中构建angular 2项目和主机和教程项目结果(根据本教程,当我们构建使用" ng build --prod"时,它将在dist文件夹中生成文件)不在php服务器中工作它只显示加载消息,并且控制这个错误
Failed to load resource: the server responded with a status of 404 (Not Found)
inline.33006aa0c7f9271418c2.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
main.42e5fd1daf31343420a1.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
polyfills.017b29d939c6479e18cc.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
vendor.9e7a0f6b9f9c8c0e49ba.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
main.42e5fd1daf31343420a1.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
styles.d41d8cd98f00b204e980.bundle.css Failed to load resource: the server responded with a status of 404 (Not Found)
如何解决这个问题?
答案 0 :(得分:0)
<base href="/"> to <base href="./">
问题解决后