问题描述
我有一个 main.less,它包含所有相关的 less 文件中的所有 @Imports,如下所示:
// color.less
@white: #fff;
@grey: #cccccc;
@lavared: #E20808;
// button.less
@import 'color.less';
.btn-danger {
background: @color;
}
// border.less
@import 'color.less';
.border-dashed{
background-size: 16px 2px;
}
// main.less
@import 'button.less';
@import 'border.less';
当这个“less bundle”运行时,生成的输出文件给了我一个 less 文件,它捆绑了下面的所有样式
// styles.less
@white: #fff;
@grey: #cccccc;
@lavared: #E20808;
.btn-danger {
background: @color;
}
border-dashed{
background-size: 16px 2px;
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)