mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code
MIT License
67 stars 23 forks source link

How do I supress compiling this less file / compile different less files than the one being edited? #14

Closed zphhhhh closed 7 years ago

zphhhhh commented 7 years ago

Here I have some more than one .less files, and them all depend on a _colors.less file. So I want to get it that if I edit the _colors.less file, the others who depends it should be recompiled.

Below the Code is not correct :

// main: ['./nav.less', './home.less']

Thank you!

mrcrowl commented 7 years ago

Unfortunately, easy-less doesn't currently track @import references from other less files.

But you can achieve what you want by referencing each dependent file as a "main":

// main: ./nav.less, main: ./home.less