Is there a way to use absolute paths for sass imports? For example, when trying to import src/shared/variables.scss from a deeply nested component, there could be a lot of ../../../../ to import the right style file.
Related: #1712 (for importing JS files)
Does this help? https://github.com/facebookincubator/create-react-app/issues/741#issuecomment-301444723
fuller example:
"css:build": "node-sass-chokidar --include-path ./node_modules/foundation-sites/scss --include-path ./src --include-path ./node_modules src/ -o src/",
@kellyrmilligan Mind sending a PR to add this to the Sass integration doc?
done!
@kellyrmilligan thanks! this is perfect. Please feel free to close the issue :)
Most helpful comment
fuller example:
"css:build": "node-sass-chokidar --include-path ./node_modules/foundation-sites/scss --include-path ./src --include-path ./node_modules src/ -o src/",