【发布时间】:2014-03-03 15:29:47
【问题描述】:
我有 VS 2012 Premium Update 4 和最近发布的(2014 年 2 月 25 日)Web Essentials 3.7,用于编译 LESS 文件。
我正在通过将我自己的自定义 LESS 文件添加到编译过程中来自定义 (Twitter) Bootstrap 前端框架:
我有这个文件夹结构:
main-file.less
bootstrap/
less/
[all bootstrap .less files]
custom/
custom-mixins.less
custom-other.less
custom-variables.less
在main-file.less 我有:
@import "bootstrap/less/bootstrap";
@import "bootstrap/custom/custom-variables";
@import "bootstrap/custom/custom-mixins";
@import "bootstrap/custom/custom-other";
我是否在导入指令中应用“.less”扩展名似乎没有区别。
在编译 main-files.less 时,我不断收到如下错误:
variable @my-label-color is undefined
variable @grid-gutter-width is undefined
对可能出现的问题有什么想法吗?
【问题讨论】:
标签: visual-studio-2012 less web-essentials