gpt4 book ai didi

ruby-on-rails-3 - 如何调整 sprockets 加载scss文件的顺序?

转载 作者:行者123 更新时间:2023-12-02 04:07:34 25 4
gpt4 key购买 nike

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

我不知道该怎么做。

亲切的问候,

尼尔斯

最佳答案

我想你想要类似的东西。

/*
* 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
*/

关于ruby-on-rails-3 - 如何调整 sprockets 加载scss文件的顺序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6872750/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com