如何调整 sprocket 加载 scss 文件的顺序?

发布于 2024-11-26 17:44:53 字数 122 浏览 4 评论 0原文

我想影响我的 scss 文件放入最终 application.css 文件的顺序,因为我希望能够覆盖另一个 scss 文件中定义的一些样式。

我不知道该怎么做。

亲切的问候,

尼尔斯

I would like to influence the order in which my scss files are put into the final application.css file, because I would like to be able to overwrite some styles that have been defined in another scss file.

I have no idea how to do this.

Kind regards,

Nils

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天冷不及心凉 2024-12-03 17:44:53

我想你想要类似的东西。

/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.
 *= require_self
 *= require_tree .
 *= require file1
 *= require file2
 *= require file3
 */ 

I think you want something like.

/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.
 *= require_self
 *= require_tree .
 *= require file1
 *= require file2
 *= require file3
 */ 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文