Skip to content
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

Define a root file #6

Open
Verhaeg opened this issue Aug 1, 2013 · 1 comment
Open

Define a root file #6

Verhaeg opened this issue Aug 1, 2013 · 1 comment

Comments

@Verhaeg
Copy link

Verhaeg commented Aug 1, 2013

Since LESS allows you to use variables in other files without importing the file where the variable was defined (this file will be imported by the root file) it would be nice if it was possible to define a root file to search for variables and from that file, all the imported file as well..
file architecture is something like this:

variables.less
style.less
-- import variables.less
-- import buttons.less
buttons.less
-- uses variable from variables.less

Thanks

@MaciekBaron
Copy link
Owner

Hi Verhaeg,

For the time being you can use the readAllViews setting and have variables.less open in another tab (the setting reads variables from all open tabs).

I guess I can add a setting to define the default root file and perhaps a root file for a specific project.

Just so you know, I'm focusing now on the universal plugin and this plugin will be soon deprecated.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants