Skip to content

Include paths with sass modules #12771

Answered by timneutkens
wityan asked this question in Help
May 12, 2020 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

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#includepaths

It basically allows you to avoid typing a full path. Eg:

includePaths: [path.join(__dirname, "app/styles")]

Would allow you to then @import like:

@import "variables.scss"

Instead of writing the full path.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@wityan
Comment options

@wityan
Comment options

@franknoel
Comment options

@tr1s
Comment options

@DejanDespot
Comment options

Answer selected by wityan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants