【问题标题】:Unable to find published angular app on github pages无法在 github 页面上找到已发布的 Angular 应用程序
【发布时间】:2018-03-17 04:20:23
【问题描述】:

即使 angular-cli-gpages 说“它已成功发布”,我在 github 页面上发布我的 angular 2 APP 后仍会收到 404

可能是什么问题?

更新:经过一段时间后,我认为该应用程序现已发布。但是,有几个 404 控制台错误。所以只有 index.html 似乎已经发布了:

GET https://wickedrahul.github.io/polyfills.bundle.js net::ERR_ABORTED
19:42:02.408 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/inline.bundle.js net::ERR_ABORTED
19:42:02.408 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/styles.bundle.js net::ERR_ABORTED
19:42:02.412 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/vendor.bundle.js net::ERR_ABORTED
19:42:02.415 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/main.bundle.js net::ERR_ABORTED
19:42:03.443 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/polyfills.bundle.js net::ERR_ABORTED
19:42:03.515 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/styles.bundle.js net::ERR_ABORTED
19:42:03.590 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/vendor.bundle.js net::ERR_ABORTED
19:42:03.673 wickedrahul.github.io/:17 GET https://wickedrahul.github.io/main.bundle.js 404 ()

【问题讨论】:

    标签: angular github github-pages


    【解决方案1】:

    #Feature Request : ng build to include a --base-href

    你会检查这个问题,它在过去的一年中提出了功能请求。尽管在一年前,它还没有实现。

    至此,angular-cli-ghpages 模块已经创建完成,需要安装后再做!

    npm install -g angular-cli-ghpages
    npm run deploy  //- it would support your --base-href command
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-10
      • 2018-03-08
      • 1970-01-01
      • 2020-12-18
      • 2015-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多