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

Fix Sass dependencies can not be watched when includePaths is a relative path #1619

Merged
merged 1 commit into from
Jun 30, 2018

Conversation

2zH
Copy link
Contributor

@2zH 2zH commented Jun 26, 2018

For #1613
I have reviewed the contributing guidelines and glad to give a pr to fix it.
Hope this is a suitable solution.

path.dirname(this.name)
);
opts.includePaths = (opts.includePaths
? opts.includePaths.map(includePath => path.resolve(includePath))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this resolves paths relative to the current working directory. is this right, or do we want to resolve relative to the sass file being compiled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, only reative to the current working directory will not change original behavior. It seems that the sass compiler has the same logic for reative path in includePaths.

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

Successfully merging this pull request may close these issues.

2 participants