-
Notifications
You must be signed in to change notification settings - Fork 3.4k
variables in import paths only work if defined in same file #1846
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
Comments
Yep, known issue http://lesscss.org/features/#variables-feature-urls. |
There are other dupes of this issue too |
Blarg, I just ran into this one on my current project. |
I'd like to add a +1 for this. I have some rather unwieldy relative paths for Bootstrap components, and absent a merge on #1965, this would help clean things up markedly. |
I'll look at this, I have a plan to improve things |
@lukeapage I'm brand-new to managing a JS/CSS build, and I'm not sure how to run a version of a JavaScript application out of a PR. Using Mimosa, if that matters. |
I think you would have to wait till mimosa less gets updated and a stable version is released. https://github.com/dbashford/mimosa-less/blob/master/package.json I've put the changes into v2, which is released |
LESS v 1.6.2
Test Case
variables.less
buttons.less
Error
Workaround
If I define the
@theme
variable directly within the buttons.less file it works fine, but if I do in the imported variables.less it wont work. Any other variables outside of that@import
section work fine, eg.padding: @size-xs @size-s;
.The text was updated successfully, but these errors were encountered: