-
Notifications
You must be signed in to change notification settings - Fork 104
node-sass throws error on empty .scss files #58
Comments
for now, try downgrading to 1.8.1 |
Or see if there's anything you could tweak in your config that might be leading to the error per the various suggestions in that thread. |
This is my config:
|
Problem occurs with |
Yeah you're not setting any special sass plugin options there. Any chance you have any empty .scss files in your project? You could also try providing the output of But I don't really know what's wrong, it's something upstream in node-sass/libsass. The easiest thing for you to do for the moment is pin your sass-brunch dependency to 1.8.1 |
Yeah, I have empty |
...and deleting or adding content to your empty .scss file(s) resolves the error? |
Yes. |
So maybe that's the perfect solution? What do you think? |
Not really, because it's confusing to fail build with empty files. |
It appears node-sass has an unpublished fix for this type of error. You could try nudging them into releasing a new patch version. The only thing sass-brunch might be able to control is skipping compilation when it knows the source file is empty to begin with. |
Ok. Thanks for your help. |
After
brunch build
orwatch
.The text was updated successfully, but these errors were encountered: