Chris
Chris

Reputation: 8442

Visual Studio LESS: Compile main file upon save of imported file

I have this less structure:

Is it possible to compile parent.less any time child1 or child2 are saved? I would prefer not to have to build the project for LESS compilation to occur. At the moment I have to trigger a save from parent.less.

I'm using the latest Web Essentials with LESS support, is it possible to do what I want with this?

Many thanks

Upvotes: 4

Views: 598

Answers (2)

LocalPCGuy
LocalPCGuy

Reputation: 6116

Just a quick comment in case anyone else stumbles across this while searching, this has been added to WE2013, but if you are still in VS2012 and using WE2012, this still doesn't work, and it doesn't sound like it will be added to 2012.

Upvotes: 0

AlignedDev
AlignedDev

Reputation: 8233

According to "SLaks" comment on the Uservoice request for this feature. "Press Alt+Shift+Y (Build, Web Essentials, Recompile all LESS Files) to do this without rebuilding."

I agree, it would be a great feature for it to do it automatically without the shortcut.

Upvotes: 4

Related Questions