'Import scss file from another folder
I've tried several ways to import scss file from another directory and didn't work, I have it organized like this:
--style ---pages ------_Home.scss ---utils ------_mixin.scss ------_variables.scss
I believe it should be like this (That's _Home.scss):
@import "..utils/mixin";
I saw a command like sass -i --watch quoted here in stackoverflow once, I think it's to setup the path through command line, that would be really helpful, but I didn't see it in the documentation.
Solution 1:[1]
Correct in the _pages.scss file the path to the file.
@import "../utils/mixin";
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Andres Linares |
