in compass or sass old version it can @import
one times for every file like this
_mixin.sass
=test_mixin()
color: #AAFFCB
screen.scss
@import "include/_mixin";
@import "print.scss";
header{ @include test_mixin; }
print.scss
header{ @include test_mixin; }
output screen.css
header {
color: #aaffcb;
}
header {
color: #aaffcb;
}
output print.css
header {
color: #aaffcb;
}
it should no have any error but in new version have error
error sass/print.scss (Line 5: Undefined mixin 'test_mixin'.)
i know add @import "_mixin.scss"
to print.scss solve this but i think if future i want to chage _mixin.scss
file name and if i have many file include _mixin.scss
i think it too tired T^T
sorry for my bad english
how can i sovle this problem ?
thank :)