-
Notifications
You must be signed in to change notification settings - Fork 399
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
Support for Sass >= 1.33 #576
Comments
@Ei-aaie thanks for the heads up on this - there's not a lot of CSS in the project and SASS provide a nice migration tool by the looks of it so I'll push a fix up this weekend. |
I forked the project, it looks like it runs a Ruby sass version, not The result is that the migration does the job, but the build fails at :
|
So I think locally now we use libsass for comping the project, but there's probably still the old ruby sass requirements in the last release of CT. Will look into what's possible, it's likely some of if not all the divisions can be removed to be honest. |
After compiling locally, ~50% can be replaced by multiplication without changing any deps, for example :
sass-migrator uses this kind of smart fix if t's possible, and if not, applies |
@Ei-aaie thank you for the report and your work looking into the issue - I've pushed up a new release 1.6.15 which removes the reliance on the division operator I believe. Multiplication would have been a good way to go on thinking about it but in the end I just when we declaring half sizes where convenient. Let me know if you are still get any warnings in dart-scss now. |
@anthonyjb It's almost it ! There are only 2 warnings left : and |
Ahh that's an external library not part of ct - I'll see if I can remove ideally or upgrade if not. |
@Ei-aaie if you look at the latest release of bourbon they don't support Dart SASS yet and had to revert the fix for div (thoughtbot/bourbon#1106 (comment)). So for now I'm just going to patch the version I include in CT if I can as they form part of the repo within the external directory. If that doesn't work I'll remove the dependency (but looking at it that's a bigger job so would be another weekend away). |
@Ei-aaie ok can we try again, new release 1.6.16 - let me know. |
Working like a charm ! Thank you ! |
@Ei-aaie great thank you for the help with issue. |
Hello, since sass 1.33.0 (dart-sass), they introduced deprecation warning for division operation with slash.
See : https://sass-lang.com/documentation/breaking-changes/slash-div
I use ContentTools in one of my project, and got a lot of warnings that I can't fix :)
2 options : using css
calc()
or@use 'sass:math'
;Thanks !
The text was updated successfully, but these errors were encountered: