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

Resolve @import statements from "node_modules" #99

Open
garrett-thompson opened this issue Apr 24, 2018 · 1 comment
Open

Resolve @import statements from "node_modules" #99

garrett-thompson opened this issue Apr 24, 2018 · 1 comment

Comments

@garrett-thompson
Copy link

garrett-thompson commented Apr 24, 2018

Is there a way to specify paths to search in when resolving @include statements?

@rodneyrehm
Copy link
Member

Since you're asking about node_modules I assume you're using sass.node.js, conveniently providing an importer callback. Unfortunately the current implementation does not provide an option to specify paths to import from. However, all paths are considered relative to process.cwd(), so accessing anything inside node_modules is technically possible.

You're welcome to send a PR for extending sass.node.js to support specifying include paths, which should be searched in case no file relative to process.cwd() could be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants