SASS global variables not being passed to partials

后端 未结 5 1967
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 01:40

Basically I have a structure that used to work perfectly in 3.0.x and now it breaks with undefined variable errors.

  • partials
    • _base.css.sa
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 02:26

    You can't use //=require to include "dynamic" SASS stuff like mixins and variables, because that's used just for including the most "static" stuff (like pure CSS). You have to @import all your files in application.css.sass. Railscasts provides good explanation of this in episode #268.

提交回复
热议问题