libsass is deprecated, lektor-scss is broken
https://sass-lang.com/blog/libsass-is-deprecated
in !63 (merged) i added the lektor-scss plugin (which is based on libsass) so that sites could compile their own scss, with the goal being to lower the barrier-of-entry to newer contributors. in !74 (merged) i fixed a deprecation warning in dart sass about using the /
operator for division by replacing it with the new math.div
function. libsass doesn't have this function, meaning that lektor-scss couldn't compile our scss
fortunately, we can easily replace the libsass api in the lektor-scss plugin with a new api that just Popen
s the dart sass binary
-
partially rewrite lektor-scss to use dart sass: small (1 day), low (x1.1) (https://gitlab.torproject.org/kez/lektor-scss) -
have the lektor ci builds pull in the dart sass binary (if needed): medium (3 days), moderate (x1.5) (in progress: <tpo/tpa/ci-templates!36 (merged)>) -
document the new plugin behavior, & the new ci behavior: small (1 day), low (x1.1) -
write docs/scripts to help new contributors get the dart sass binary without issue: medium (3 days), low (x1.1)
time estimate: 10 days
Edited by Kez