-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Don't process CSS imports by default #5874
Conversation
Seems good to me. |
seems like a breaking change are there somespecial steps we need to take? |
@wagenet could you fix the broken test? |
Its not a breaking change because old versions of the minifier didn't do stuff with imports. I'll look into the tests.
|
@wagenet but now there is an interim time were they are process? How big is that window (i would like to write this off as a non-breaking change, just want to make sure we have all the facts). |
☔ The latest upstream changes (presumably #5928) made this pull request unmergeable. Please resolve the merge conflicts. |
This is a potentially dangerous default in clean-css. Ideally they'd change it there, but it doesn't seem that it's likely. The benefits of importing files by URL is also greatly reduced in ember-cli apps. See clean-css/clean-css#767
@homu I've fixed the merge conflict. |
@wagenet How long was the timeframe where where https://github.com/jakubpawlowicz/clean-css/ inlined imports that we had this as a side effect? (AKA, when did they ship it?) |
@nathanhammond The chain is long and confusing. It looks like ember-cli-preprocess-registry (the first package in the long chain to clean-css) was updated to So all that to say that prior to ember-cli 2.3 you could end up with clean-css Presumably the issues I'm seeing have something to do with that clean-css version change. This goes back long enough and is inconsistent enough that maybe we shouldn't do anything about this, though I really would like to make this less confusing to users, since I think that clean-css has the wrong defaults (especially in regards to importing Another option that I realized is that we could do |
@wagenet First, thank you for doing all of that research. That looks like it was a pain in the ass. In human time that means that we arbitrarily switched behavior on February 16, 2016 with no complaints (except yours), and could arbitrarily switch back with likely the same story. I consider this Since it's easily configurable in consuming apps this seems like a solid win. I'm in favor. @rwjblue as caretaker of upgrade pain, you're the final arbiter on this. |
☔ The latest upstream changes (presumably #6629) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets do it!
@homu r+ |
📌 Commit bd3cc13 has been approved by |
Don't process CSS imports by default This is a potentially dangerous default in clean-css. Ideally they'd change it there, but it doesn't seem that it's likely. The benefits of importing files by URL is also greatly reduced in ember-cli apps. See clean-css/clean-css#767
💔 Test failed - status |
☀️ Test successful - status |
This is a potentially dangerous default in clean-css. Ideally they'd change it there, but it doesn't seem that it's likely. The benefits of importing files by URL is also greatly reduced in ember-cli apps. See clean-css/clean-css#767