【发布时间】:2015-08-31 18:43:39
【问题描述】:
我想知道在使用 Meteor 时如何按顺序加载 scss 文件。
不使用 Meteor,我会制作类似 application.scss 的内容并加载 .scss 文件,以便稍后加载的样式表可以依赖于之前加载的 mixins/variables。然后我会在我的模板中加载application.scss。
application.scss
@import 'bourbon/bourbon'
@import 'colors' // where I define color variables
...
// import other stylesheets that depend on `bourbon` and `colors`
但我不能这样做,因为 Meteor 会以未指定的顺序自动加载所有样式表。
我尝试将bourbon 和colors 放在client/lib 中,以便首先加载它们,但我无法在其他样式表中使用其中定义的混合/变量。
有什么建议吗?
【问题讨论】:
-
@fuzzybabybunny 谢谢。你能把它作为答案让我接受吗?