Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Q] use absolute paths to import sass files #2156

Closed
woniesong92 opened this issue May 15, 2017 · 5 comments
Closed

[Q] use absolute paths to import sass files #2156

woniesong92 opened this issue May 15, 2017 · 5 comments

Comments

@woniesong92
Copy link

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)

@gaearon
Copy link
Contributor

gaearon commented May 15, 2017

Does this help? #741 (comment)

@kellyrmilligan
Copy link
Contributor

fuller example:
"css:build": "node-sass-chokidar --include-path ./node_modules/foundation-sites/scss --include-path ./src --include-path ./node_modules src/ -o src/",

@gaearon
Copy link
Contributor

gaearon commented May 19, 2017

@kellyrmilligan Mind sending a PR to add this to the Sass integration doc?

@kellyrmilligan
Copy link
Contributor

done!

@woniesong92
Copy link
Author

woniesong92 commented May 19, 2017

@kellyrmilligan thanks! this is perfect. Please feel free to close the issue :)

@gaearon gaearon closed this as completed May 19, 2017
@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants