我们的项目中有一个无第三方文件 - 比如说foo.less. foo.less将编译为foo.css.
foo.less
foo.css
-- team1.less
-- team1.css
-- team2.less
-- team2.css
team1.less并且team2.less都导入foo.less.
Team1
在其网页上
引用了foo.css和,而Team2引用了和。team1.cssfoo.cssteam2.css
如何在各自的编译输出中获取team1.css和team2.css排除?foo.css现在发生的事情是team1.css并且team2.css两者都有foo.css(重复css代码)。
编辑:
team1.less并team2.less导入foo.less以利用许多变量和混合。