我希望在我的LESS文件中切换IE8模式并自动生成Gulp中的文件.
这是我停止通过gulp-less(减去一堆东西)的地方:
var IE = true;
var LESSConfig = {
plugins: [ ... ],
paths: LESSpath,
ie8compat: IE, //may as well toggle this
// Set in variables.less, @ie:false; - used in mixin & CSS guards
// many variations tried
// globalVars: [ { "ie":IE } ],
modifyVars:{ "ie":IE }
};
...
.pipe( less ( LESSConfig ) )
Run Code Online (Sandbox Code Playgroud)
Gulp不支持变量修改吗?
如果可以的话,我想避免使用gulp-modify 等.我想保持构建系统与源文件相当抽象.