I have the following configuration/SCSS files related to my Asset Pipeline.
The need is to have a custom CSS file for each controller, such as the home
stylesheet below.
Inside those controller specific stylesheet, several variables, extends, and includes are used. If the SCSS file is imported inside application.scss
, such as:
@import "home"
the variables work fine. But once I remove that declaration and declare the file inside the asset pipeline, the applications runs into an error:
Undefined variable: "$LatoFamily"
or similar. From what I understood, it is (maybe that's obvious) due to application.scss
being already pre-compiled by that time (?).
What's a plausible approach for that case? Should I @import
all the Bootstrap, Font Awesome as well as the custom SCSS files inside the home.scss
and other controller-specific stylesheets?