-
Notifications
You must be signed in to change notification settings - Fork 29
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
Remove node-sass in favor of dart-sass #64
Conversation
…failed. I removed them for now. See: https://sass-lang.com/documentation/syntax/special-functions#min-and-max
This is great thanks, I will update the Readme now it won't use node-sass, and then publish a new version, I will keep you posted! thanks again. |
Hi @Levdbas changes are merge but test are failing even thought it says they passed, I will take a look into it and get back to you! |
You think it's because of the map errors being spit out?
|
yes, there is an issue open here sass/libsass#3048 and here sass/dart-sass#898 regarding this error |
Hi @civan , I think that we cannot expect the libsass issue being resolved since the output is invalid css in the first place. So I tried to come up with a way to work around this issue and tried several approaches.
But I found out when map values are handed off like this to #sass-export-id.bps {
content: #{'("mobile": #{$bp-mobile}, "tablet": #{$bp-tablet}, "desktop": #{$bp-desktop}, "large-desktop": #{$bp-large-desktop})'};
} the compiled css comes out like this which sass does accept as a valid css value. #sass-export-id.bps {
content: ("mobile": 320px, "tablet": 600px, "desktop": 1000px, "large-desktop": 1440px);
} So there might be a way to work around this. Only thing that has to happen is to interpolate the scss variables/values inside a map in an earlier stage before they are handed of to the Is that something that might be possible you think? |
Hi @civan , I did another attempt at cracking this issue. I came up with using https://sass-lang.com/documentation/modules/meta#inspect and we are now very close it seems. I hope you can help me with these last errors: See Levdbas@e7adbb2 Error 1
Error 2
Error 3
Error 4, only in console.
|
Since node-sass is now deprecated I made this new PR to further update this package.
When running the tests a lot of errrors are spit about how the css is parsed but the tests run succesfully. We might want to look into this later on.