sass @include works in some files and not others -
i'm using sass library 'bourbon neat'. provides mixin called "outer-container".
i have sass file structured this:
@import bourbon/bourbon @import neat/neat @import componentone @import componenttwo i want use neat within both files componentone , componenttwo.
within both files have use mixin:
@include outer-container; if use mixin within componentone, result want. mixin gets used.
if use mixin within componenttwo, gulp-sass throws error:
error: no mixin named outer-container
backtrace: componenttwo.scss on line 3 of componenttwo.scss@include outer-container;
i cheat importing entire library second file. if read sass docs right, mixin should available both componentone.scss , componenttwo.scss, because both @imported file imports library.
what's going on here? how use library in sass files without importing each file?
Comments
Post a Comment