Its a Rails 4 project.
In the file app/assets/stylesheets/application.css.scss
, I've
/*
*= require_self
*/
@mixin row() {
color: blue;
}
body {
h1 {
@include row;
}
}
Starting the server and viewing in the browser works fine.
Now I take that mixin and put in the file vendor/assets/stylesheets/external.scss
@mixin row() {
color: blue;
}
and require it in the application.css.scss
as the following:
/*
*= require external
*= require_self
*/
body {
h1 {
@include row;
}
}
And refresh the browser, it errors out with
Sass::SyntaxError
Undefined mixin 'row'.
Why is the mixin defined in the external file is not working??