Skip to content
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

Make broccoli-asset-rev run before ember-asset-loader #114

Closed
wants to merge 1 commit into from
Closed

Make broccoli-asset-rev run before ember-asset-loader #114

wants to merge 1 commit into from

Conversation

Cryrivers
Copy link

@Cryrivers Cryrivers commented Dec 1, 2016

ember-asset-loader generates asset lists by walking through the post-process tree, which needs broccoli-asset-rev to run before ember-asset-loader to make sure all files have been fingerprinted in production build before the asset list compilation.

@codecov-io
Copy link

Current coverage is 96.07% (diff: 100%)

Merging #114 into master will not change coverage

@@             master       #114   diff @@
==========================================
  Files             3          3          
  Lines           153        153          
  Methods          15         15          
  Messages          0          0          
  Branches         36         36          
==========================================
  Hits            147        147          
  Misses            6          6          
  Partials          0          0          

Powered by Codecov. Last update 5b3c480...8cce457

@rickharrison
Copy link
Collaborator

@nathanhammond Would you mind weighing in here? I am not fully up to speed on all the ember addon stuff.

@Cryrivers
Copy link
Author

@rickharrison I already pinged @nathanhammond and @trentmwillis on slack

@trentmwillis
Copy link
Member

I think this will only work for simple use cases. I think broccoli-asset-rev should actually run after ember-asset-loader, but it needs to run replacements on the asset-manifest.json file that gets generated. If we have this run before, then ember-asset-loader won't include any potential prepend information.

The reason this works for simpler cases is because broccoli-asset-rev renames the output files, thus when ember-asset-loader generates a manifest by walking the directories, the files have been properly renamed. When using prepend, however, that information isn't part of the file name.

@Cryrivers
Copy link
Author

@trentmwillis yes, I totally agree with you. @rickharrison can we add json to replaceExtensions?

@nathanhammond
Copy link
Collaborator

The .json can be specified by the user of the addon, doesn't need to be a default.

@nathanhammond
Copy link
Collaborator

See also: #111

@Cryrivers
Copy link
Author

@nathanhammond @trentmwillis I think I'm closing this PR in favor of manifest prefixing.

Thank you guys.

@Cryrivers Cryrivers closed this Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants