【问题标题】:Importing stylesheet files in Meteor在 Meteor 中导入样式表文件
【发布时间】:2015-02-20 17:36:19
【问题描述】:

我在 Meteor 中使用 Stylus 作为 css 预处理器。

现在我必须为所有文件添加“.import.styl”后缀,然后手动将它们导入到一个大的“app.styl”文件中。

示例文件:

app.styl
header.import.styl
body.import.styl

app.styl 的内容是:

@import header.import.styl
@import body.import.styl

在 Meteor.js 中没有更优雅的方式来做到这一点吗?

【问题讨论】:

    标签: css import meteor stylus


    【解决方案1】:

    这个包从社区下载了很多

    https://atmospherejs.com/meteor/stylus

    【讨论】:

    • 是的,我使用这个包。但是,您仍然需要手动导入所有样式文件。
    猜你喜欢
    • 1970-01-01
    • 2013-02-28
    • 2018-02-19
    • 2016-07-19
    • 2019-08-20
    • 2014-08-27
    • 1970-01-01
    • 2021-10-10
    • 1970-01-01
    相关资源
    最近更新 更多