Closed Cryrivers closed 7 years ago
@@ 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
@nathanhammond Would you mind weighing in here? I am not fully up to speed on all the ember addon stuff.
@rickharrison I already pinged @nathanhammond and @trentmwillis on slack
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.
@trentmwillis yes, I totally agree with you. @rickharrison can we add json
to replaceExtensions
?
The .json
can be specified by the user of the addon, doesn't need to be a default.
@nathanhammond @trentmwillis I think I'm closing this PR in favor of manifest prefixing.
Thank you guys.
ember-asset-loader
generates asset lists by walking through the post-process tree, which needsbroccoli-asset-rev
to run beforeember-asset-loader
to make sure all files have been fingerprinted in production build before the asset list compilation.