Giter Site home page Giter Site logo

Comments (6)

elwayman02 avatar elwayman02 commented on June 6, 2024

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:

http://elwayman02.github.io/ember-bug-widget/

from ember-cli-github-pages.

elwayman02 avatar elwayman02 commented on June 6, 2024

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 demoURL path includes the app name and the built app has a folder named after the app which contains the assets.

from ember-cli-github-pages.

knownasilya avatar knownasilya commented on June 6, 2024

Is this an issue if configured correctly, and are you sure you're not having issues with fingerprinting of dynamic assets?

from ember-cli-github-pages.

knownasilya avatar knownasilya commented on June 6, 2024

Ping

from ember-cli-github-pages.

elwayman02 avatar elwayman02 commented on June 6, 2024

@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

from ember-cli-github-pages.

imfly avatar imfly commented on June 6, 2024

Hi, guys, I think this should be an enhancement, instead of a bug. If your images and fonts are not in the assets folder, you should use a absolute path like /images/some-image.jpg, not images/some-image.jpg in your *.css , *.less, or *.scss, and use relative path like images/some-image.jpg in the *.hbs.

It works well if you use a domain, org's or user's gh-pages, because all of these have no directory prefix /project-name .

Demo:

sources: https://github.com/Ebookchain/ebookchain.org (with fingerprinting of dynamic assets)

site(on gh-pages): http://ebookchain.org

from ember-cli-github-pages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.