Angular 8 ng-build 在 Firefox 中抛出 MIME 错误,在 Chrome 中抛出 404
Angular 8 ng-build throwing MIME error in Firefox and 404 in Chrome
在 github 页面上部署我的 Angular 应用程序后,它不会在 www.https://www.lorem.com/
上在线呈现,该页面只是空白,我在控制台中有错误。
在 Firefox 上显示:
在 Chrome 上说:
知道问题出在哪里吗?
它看起来像是 base href 的问题,因为 www.illiteratiartandcowork.com/theotherspace/
中没有文件,请尝试将 index.html 中的 base href="/theotherspace/"
更改为 base href="/"
github.
上的文件夹
从这个 url 我得到 css 文件正确(它也适用于其他文件)
https://www.illiteratiartandcowork.com/styles.a400f1df2c914132955e.css
在 github 页面上部署我的 Angular 应用程序后,它不会在 www.https://www.lorem.com/
上在线呈现,该页面只是空白,我在控制台中有错误。
在 Firefox 上显示:
在 Chrome 上说:
知道问题出在哪里吗?
它看起来像是 base href 的问题,因为 www.illiteratiartandcowork.com/theotherspace/
中没有文件,请尝试将 index.html 中的 base href="/theotherspace/"
更改为 base href="/"
github.
从这个 url 我得到 css 文件正确(它也适用于其他文件)
https://www.illiteratiartandcowork.com/styles.a400f1df2c914132955e.css