-
-
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
Error on SASS Partials in 1.x #68
Comments
I ran into the same issue today when upgrading to 1.0.0. All my import statements of partials yielded 'file to import not found' errors. If it is intentional that partials should now be referenced with an underscore, a note should be added to the readme. My setup is roughly: create a webpack config with Related question: Now issue #39 has been implemented, what is really the difference between a partial import and a regular file import? |
The files are now resolved by webpack, and webpack doesn't care about the If you don't want to replace all your import statements, I recommend to stick with sass-loader |
Should be fixed with |
@import 'blocks/*'; -> File to import not found or unreadable: ./blocks/_*.sass I have: |
Is that a wildcard or do you have a file called |
@mrsum FYI |
Are globs supported by Rubysass? Why are people expecting this to work? |
webpack causing more problem than it solves. Why this would not work i don't get it. |
@atilkan what you problem? please create issue (better with minimum reproducible test repo) |
Hi @jhnns,
I am not a node-sass expert by any means, and so I cannot comment on exactly what the desired end result should be, but I make extensive use of SASS partials in my code and the handling of them seems to have changed when moving from 0.x to 1.x.
For example:
If I have file
_my-partial.scss
, I would expect to (as working in 0.x) be able to reference it in my main SCSS file as@import "my-partial"
.In 1.x, you have to explicitly write the underscore, but as I understand it, the underscore is what signifies to SASS that it is indeed a partial.
More info: http://sass-lang.com/guide
Many thanks for your hard work on sass-loader!
James
The text was updated successfully, but these errors were encountered: