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.sass
- _header.css.sass
- main.css.sass
- application.css.sass
the application.css.sass
:
//=require 'main'
the main.css.sass
:
@import 'partials/base'
@import 'partials/header'
Pretty simple stuff.
I get an error on _header.css.sass
because it uses a variable defined on _base.css.sass
I didn't have this error before, and it makes no sense to me, since we're importing those variables on the _base.css.sass
in the same context we are importing the _header.css.sass
.
Am I going to have to import the _base.css.sass
on every partial too?
What is the point of the main.css.sass
requiring global variables if they cannot be used in the own partials you are requiring?
If my structure is completely wrong, please give me an alternative, I'd love suggestions.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…