Depending on your build environment, you can kick off dotless.Compiler.exe
as a build task.
For example, using a Pre-Build task in Visual Studio (all 1 line):
$(SolutionDir)ToolsdotLessdotless.compiler.exe -m
$(ProjectDir)contentcsssite.less $(ProjectDir)contentcsssite.css
The macros ($(SolutionDir)
, etc) allow a bit of flexibility to project and file locations. Rather than using the standard .less
files, simply reference the new .css
files in your markup.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…