Nikola
Nikola

Reputation: 101

GitHub page returns 404 only for some files

I've pushed to gh-pages my local dist folder containing the demo for my ng2 component with: git subtree push --prefix dist origin gh-pages

Everything's loading ok, except the vendor...js/css files.

my gh-pages website: https://nkalinov.github.io/ng2-datetime/

my gh-pages source code: https://github.com/nkalinov/ng2-datetime/tree/gh-pages

What am I missing ?

Upvotes: 4

Views: 1064

Answers (2)

Chris Wu
Chris Wu

Reputation: 26

I had similar issue today I only use github page to host a static site but it dislike my "vendor.bundle.js" which is generated by webpack(was working before though).

I searched all day and landed here soon as I change to "lib.bundle.js" it worked.

By the way .nojekyll file not working for me.

Upvotes: 1

zoul
zoul

Reputation: 104065

I think there’s a default vendor* ignore pattern either in Jekyll or GitHub Pages. Does the problem go away if you touch a .nojekyll file in the repo?

Upvotes: 4

Related Questions