Include paths with sass modules #12771
-
Hei
Is there any issue in my config? Because the mixins and variables do not work. I get this error
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
It basically allows you to avoid typing a full path. Eg:
Would allow you to then
Instead of writing the full path. |
Beta Was this translation helpful? Give feedback.
-
well if anyone is still facing this issue this is how you can make your stylesheets global
|
Beta Was this translation helpful? Give feedback.
-
I built upon this to simply load a library file globally: const nextConfig = {
sassOptions: {
additionalData: `@import "./node_modules/include-media/dist/_include-media.scss";`
},
}; |
Beta Was this translation helpful? Give feedback.
includePaths
is not a file loading mechanism. Please reference the Sass documentation on how it works and what it is: https://sass-lang.com/documentation/js-api#includepathsIt basically allows you to avoid typing a full path. Eg:
Would allow you to then
@import
like:Instead of writing the full path.