django-sass-processor-dart-sass
This is a shim that makes django-sass-processor use Dart Sass rather than libsass because libsass is deprecated.
This provides a replacement for sass.py provided by libsass and simply calls out to sass provided by Dart Sass.
Dart Sass must be installed separately.
Note: vanilla Dart Sass only
This does not support the custom functions provided by django-sass-processor through libsass. It only supports vanilla Dart Sass.
How to use it
This clashes with libsass, so remove libsass if you have it installed:
pip uninstall libsass
Install Dart Sass by following their instructions.
Install this package:
pip install https://github.com/laws-africa/django-sass-processor-dart-sass
That's it. Install and use django-sass-processor as normal.
Advanced usage
If you need to change the sass command, override it like so:
from sass import dart_sass
dart_sass.sass_command = ['/special/sass']
# to use npm sass, use:
dart_sass.sass_command = ['npx', 'sass']
Build and release
Build: python3 -m build
Release to Pypi: python3 -m twine upload dist/*
Release files for django-sass-processor-dart-sass 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-sass-processor-dart-sass-0.1.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sass_processor_dart_sass-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / django-sass-processor-dart-sass-0.1.0.tar.gz
| Download URL | django-sass-processor-dart-sass-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec8bcc30827836831040abf3b203e4e057ac6cd7cfbd15ea6fce869f1dce268b
|
|
BLAKE2b-256 checksum How to use checksums |
8ce5fc77a83f1bdec5850d52b5cfbd295a0aaf20cb5fcf16af46bb4214609127
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|
Release files / django_sass_processor_dart_sass-0.1.0-py3-none-any.whl
| Download URL | django_sass_processor_dart_sass-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
426e70c945e5fc81f7f4b3051a55b2fbf69f0cfdf1b4eb19d187b8ea4c54e4f7
|
|
BLAKE2b-256 checksum How to use checksums |
24c583ae497c82bcc2986a3b354941f6b8416d1e96799a348d37047e3b5bf38c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|