sass-export
sass-export copied to clipboard
Include Paths for @import doesn't seems to work with Bootstrap
I have a "_variables.scss" with two imports :
@import "~bootstrap/scss/functions"; @import "~bootstrap/scss/variables";
When i run
sass-export src/styles/common/_variables.scss -o src/exported-sass-variables.json -d "node_modules/bootstrap/scss/"
sass-export throw an error :
Error: File to import not found or unreadable: ~bootstrap/scss/functions.
even if I replace the ~ (shortcut to node_modules) by the relative path to node_modules
@Sly36 I was also facing the same issue, and I gave the path to my scss directory. You can try in a below manner :
includePaths: ["node_modules/bootstrap/scss/"]