Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Major rewrite required: dart-sass integration #13

Open
vsalvino opened this issue Aug 30, 2021 · 2 comments
Open

Major rewrite required: dart-sass integration #13

vsalvino opened this issue Aug 30, 2021 · 2 comments

Comments

@vsalvino
Copy link
Contributor

vsalvino commented Aug 30, 2021

libsass, which powers dozens of wrappers including the official Python sass library, has sadly been deprecated by the sass team.

Therefore, we must figure out a new way to integrate with sass - via either some kind of horrific Dart-To-Python integration, or via subprocess using the official sass CLI tool.

For this reason, our sass/scss features are relatively frozen as of October 2020 since that is when the deprecation happened.

Read about it here: https://sass-lang.com/blog/libsass-is-deprecated

@vsalvino vsalvino changed the title Major rewrite: dart-sass integration Major rewrite required: dart-sass integration Aug 30, 2021
@vsalvino vsalvino pinned this issue Aug 30, 2021
@thibaudcolas
Copy link

thibaudcolas commented Feb 3, 2022

pytailwindcss / django-tailwind might be a good source of inspiration? It’s based on a CLI for Tailwind that has been packaged with a Node runtime via pkg (see https://github.com/tailwindlabs/tailwindcss/blob/master/standalone-cli/package.json) – essentially so a Django-aware project can tap into the Sass CLI as you describe, without requiring people to also have Node installed on their machine.

@vsalvino
Copy link
Contributor Author

vsalvino commented Feb 3, 2022

Thanks for the links - will check it out.

My thought was to package the static dart-sass CLI binary with the pip package for each platform. First check if sass is on the PATH, if so use it, if not then fall back to the packaged binary.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants