2017-10-05 78 views
0

我在我的出版角2 APP在github页获得404发布应用程序的角度,即使角度-CLI-gpages说“这是成功发布”无法在github页

可能是什么问题?

enter image description here

UPDATE:相当长的一段时间后,我觉得现在的应用程序发布。但是,有几个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() 

回答

0

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

你会检查这个问题,它说在过去的特征要求year.Despite一年前,它不implented。

到目前为止,angular-cli-ghpages模块被创建。您需要安装然后做!

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