mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to compile only one of them?

percyho opened this issue · comments

I have two less files. How to compile only one of them?

Hi there. Can you provide some more details on what you're wanting? Why do you want one file compiled and not the other? Is there any relationship between these files?

Hi there. Because one file is imported into another, I don't want to compile them.

Okay. You can use the // main: <some-filename.less> directive for this.

You put this comment at the top of the imported file. That tells EasyLESS which file to compile instead of the file itself. That way, whenever you save the imported file, the "main" file gets recompiled.

More details on this in the readme.