I have project on Rails 4.2 with sass-rails 5.0.4 and there everything works fine.
Now created new project on Rails 5.0 with sass-rails 5.0.5 and copied all SASS(scss) file from old project to new one.
So, style.scss does not see variables from _color.scss if it imported in general.scss
It works only when write import right in style.scss
But except style.scss I have many other files, which uses colors and mixins.
In Rails 5 it works, only when I added import in everyone *.scss files which use colors and mixins.
So, whats happened with global namespace for variables and mixins?
I have project on Rails 4.2 with sass-rails 5.0.4 and there everything works fine. Now created new project on Rails 5.0 with sass-rails 5.0.5 and copied all SASS(scss) file from old project to new one.
In both project uses sass 3.4.22
I have general.scss
In Rails 5 got error in style.scss:
So, style.scss does not see variables from _color.scss if it imported in general.scss It works only when write import right in style.scss But except style.scss I have many other files, which uses colors and mixins. In Rails 5 it works, only when I added import in everyone *.scss files which use colors and mixins.
So, whats happened with global namespace for variables and mixins?