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
@import (once) breaks with indirection #2444
Comments
I suppose this is because of #1617 (comment). |
as I said there
If someone has put the 2nd import in the top level file because the specificity demands it go later then fixing this would mean it is put earlier, not later. So my thoughts are that its less likely to cause a problem with the current technique. Also IMO if you are importing files multiple times and relying on ordering, you are doing something wrong! |
I deleted my previous comment =) I agree that our LESS is pretty crazy, but I'd expect it to generate unnecessarily large CSS with duplicate selectors and that's completely our own fault. I'm hoping that |
also, multiple namespace import wont work anymore. e.g.: |
Great! I solved similar problem. thanks. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Frankly I'm not sure if this is a bug or a feature, but it's not behaving as I'd expect from reading the docs.
Doc's on import-once:
So if I include a file twice, it's included the first time and ignored subsequent times. Ok. But if I include that file indirectly and then directly then it's using the last import and not the first that's used.
I have
lessc 2.3.1 (Less Compiler) [JavaScript]
.The files
style.less
wrapper.less
Use case 1, where it works
main1.less
main1.css
Use case 2, where it's wrong
main2.less
main2.css
Is this a bug or is there something I've missed? Because now my stuff gets overwritten.
The text was updated successfully, but these errors were encountered: