-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
sass-loader can't resolve path to _index.scss file when using import alias #691
Comments
What you expected? You should use package name, like |
@evilebottnawi I don't know much about sass-loader source code but propably // Yup actually adding these paths to the list fixes the issue
|
@sqal Looks like it's not related to |
|
@evilebottnawi but I don't use node-sass :( I'm using dart-sass implementation and it supports importing _index file since version 1.0.0 https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#100-rc1. |
mark as feature, because it is support only |
Issue
Dart-sass allows us to import an _index.scss or _index.sass file without explicitly adding the _index part at the end of imported file. Currently it only works for relative imports and fails when I try to import _index.scss using an alias in my import path.
Expected Behavior
This code should work
Actual Behavior
Compilation failed
Code
Reproduction https://github.com/sqal/sass-loader-bug-repro
How Do We Reproduce?
npm run build
)The text was updated successfully, but these errors were encountered: