-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] ember-cli-github-pages should fix asset paths loaded through css/js. #11
Comments
This seems like more of a bug than an enhancement, but either way it's definitely needed. Here's an example of a demo app where the assets load incorrectly due to this issue: |
rounders/ember-world-flags#3 details how to fix this issue manually. Essentially, you need to edit all vendor assets to use the app name twice in their paths, since the |
Is this an issue if configured correctly, and are you sure you're not having issues with fingerprinting of dynamic assets? |
Ping |
@knownasilya I definitely had this issue on multiple addons and it wasn't a fingerprinting problem in the past. I am not sure if it still exists as I haven't had to deploy an addon with asset loading on the recent versions of this addon |
Hi, guys, I think this should be an enhancement, instead of a bug. If your It works well if you use a domain, org's or user's gh-pages, because all of these have no directory prefix Demo: sources: https://github.com/Ebookchain/ebookchain.org (with fingerprinting of dynamic assets) site(on gh-pages): http://ebookchain.org |
Right now, when making a dist for gh-pages, assets loaded through css or js will not have the correct path, given that gh-pages expects asset paths to have the repo prefix. For example:
ember-cli-github-pages/images/some-image.jpg
.The text was updated successfully, but these errors were encountered: