Visual Studio LESS: compile the main file while saving the imported file

I have this structure less:

  • parent.less
    • child1.less
    • child2.less

Is it possible to compile parent.less at any time when child1 or child2 is saved? I would prefer not to create a project to compile LESS. At the moment, I have to run rescue from parent.less.

I use the latest LESS-enabled Web Essentials, can I do what I want with this?

Thank you very much

+4
source share
2 answers

In accordance with the comment "SLaks" request Uservoice for this function . "Press Alt + Shift + Y (Build, Web Essentials, recompile all LESS files) to do this without recovery."

I agree, this would be a great opportunity to do this automatically without a shortcut.

+4
source

Just a quick comment in case someone else stumbled upon it while searching, it was added in WE2013, but if you are still in VS2012 and using WE2012, it still does not work, and it does not look like it will be added to 2012 year.

0
source

Source: https://habr.com/ru/post/1484623/


All Articles