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

[vue-sass] Follow Symlinks for imports #379

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

marvinside
Copy link
Contributor

Package vue-sass was unable to follow files via symbolic links and was therefore unable to import them via sass/scss import.

This is now fixed by especially looking for symlinks and resolving them first.

(Aparently i've done something wrong, so some changed code from PR-346 is also shown in the changed files. But this should not be a problem as this PR was merged)

marvinside and others added 10 commits January 2, 2019 17:58
Scss imports in imports are often broken as the paths there may be absolute to node_modules (at least in the case of @Material packages).
To fix this, there is now a config option in package.json: vue.css.loaderOptions.sass.includePaths (array of Strings)
As vue-sass checked that files exists with fs.lstatSync().isFile(),
files with an symlink in their path were not detected as existing.

This fix now Checks if the path is an symlink. If so, then the symlink
will be resolved and checked if the resolved path is an exising file.
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.

None yet

1 participant