A script for converting your STYL files to SCSS
You have to install zx globally for this script to work.
Hint: For Windows you have to provide the executing shell executable. Easiest thing if you want to execute it is to run:
npx zx --shell=C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe ./stylus.migration.mjs- Using CSS variables it might duplicate the
var(--name)tovar(var(--name)). - base64 encoded strings are converted incorrectly, removing the
;inbetween the format and base64. - divisions might be fucked after the migration because SCSS disallows the usage of
/. You have to convert division to usemath.div(4,2)orcalc(4/2)
Don't want to manually edit hundreds of files.
