2012在导入保存时编译母版LESS

2012在导入保存时编译母版LESS

本文介绍了VS Web Essentials 2012在导入保存时编译母版LESS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试维护一个全局.less文件,该文件@import应用程序的其余部分.less文件.

I am trying to maintain a global .less file which @imports the rest of the application .less files.

我目前正在使用Web Essentials扩展在Visual Studio 2012中开发此项目,该扩展会在保存时自动生成CSS文件.

I am currently developing this project in Visual Studio 2012 using the Web Essentials extension which automatically generates css files on save.

但是,它仅编译刚刚保存的.less文件,它是子文件,我希望上游主" .less文件@import当前文件的编译.

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.

有人知道该怎么做吗?

推荐答案

在最新的每晚构建中,您现在可以选择编译构建中的所有LESS文件.在更新链接的LESS文件时,可以解决导入链问题.在此处获取最新的每晚信息: http://madskristensen.net/custom/webessentials2012.vsix?1.8 .9.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

这篇关于VS Web Essentials 2012在导入保存时编译母版LESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 01:10