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
Fingerprints should be generated after autoprefixing files #38
Comments
The underlying cause may be similar to that of ember-cli/broccoli-asset-rev#118, which was addressed by introducing a two-stage pipeline approach: ember-cli/broccoli-asset-rev#121 |
Oh nice find! ember-cli-autoprefixer is indeed being run after the fingerprinting stage.
Shows:
with mismatched asset fingerprint:
We can influence the order by modifying package.json to indicate that autoprefix must occur before broccoli-asset-rev:
resulting in an adjusted build order:
and corrected asset fingerprint:
I'll put together a PR. |
Hey @cbrevdev, thanks for the quick reply and PR! I had no idea about the existence of the "before" mechanic - I'm happy you did! |
Thank you very much for this, both of you. This has been fixed in #39 and released as version 0.8.1 now! 🎉 |
It would seem the generated fingerprint on
.css
files is generated -before- the file's contents are autoprefixed. See this diff, comparing the originalvendor.css
file (without autoprefixing) to the one post autoprefixing:https://www.diffchecker.com/xk5ell28
Both of them have the following fingerprint:
This is an issue when:
vendor-71a8f7f0ec9ee74bd7700d99a5f0b69d.css
(without autoprefixing)Versions
Ember: 2.15.1
broccoli-asset-rev:
ember-cli-autoprefixer: 0.8.0
The text was updated successfully, but these errors were encountered: