问题
I am trying to maintain a global .less file which @imports the rest of the application .less files.
I am currently developing this project in Visual Studio 2012 using the Web Essentials extension which automatically generates css files on save.
However it only compiles the .less file which has just been saved and it's children and I want upstream "master" .less files which @import the current file to be compiled.
Anyone know how to do this?
回答1:
In the latest nightly build, you now have an option to compile all LESS files on build. That takes care of the import chain issue when updating chained LESS files. Get the latest nightly here: http://madskristensen.net/custom/webessentials2012.vsix?1.8.9.1
来源:https://stackoverflow.com/questions/13415729/vs-web-essentials-2012-compile-master-less-on-imported-save