Skip to content

Incompatible with ember-cli-ifa #52

@mansona

Description

@mansona

I have a bit of a tough one that I am not entirely sure how to fix without a significant refactor 🤔

Essentially ember-cli-ifa is a somewhat popular addon that is used to allow you to lookup the assetMap generated by broccoli-asset-rev and dynamically reference assets for urls that are being generated dynamically (i.e. an image that has the same name as some data in a loop).

There have been some refactors on the ember-cli-ifa addon recently to make it more stable (and also fix a bug where it was causing integrity checks to fail in some cases) but these refactors have meant that it now depends on the presence of the assetMap at build time. Now that ddbeae1 means that prember runs before broccoli-asset-rev it is impossible for ember-cli-ifa to get access to the assetMap when running in the context of prember 😞

I have been wracking my brain trying to find the issue for the past month and now that I've found the root cause, it feels like there is no real solution to it. The only naive solution I can think of is that we need to split broccoli-asset-rev into 2 addons: one that generates the asset map and one that does the replacing. That way we would be able to prember run after broccoli-asset-map-generator but still before broccoli-asset-rev-replacer.

Obviously I would really prefer not to have to split broccoli-asset-rev in two as that is much more effort than I was hoping to have to spend to fix this one issue 😞 any guidance would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions