A drop-in replacement for sass for use with django-sass-processor that uses dart sass rather than libsass
Project description
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/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-sass-processor-dart-sass-0.1.0.tar.gz
.
File metadata
- Download URL: django-sass-processor-dart-sass-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8bcc30827836831040abf3b203e4e057ac6cd7cfbd15ea6fce869f1dce268b |
|
MD5 | 925629b21a70080da94cd809b349d639 |
|
BLAKE2b-256 | 8ce5fc77a83f1bdec5850d52b5cfbd295a0aaf20cb5fcf16af46bb4214609127 |
File details
Details for the file django_sass_processor_dart_sass-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_sass_processor_dart_sass-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426e70c945e5fc81f7f4b3051a55b2fbf69f0cfdf1b4eb19d187b8ea4c54e4f7 |
|
MD5 | 5b7ae4fcc4edc1589f4bf7ff3da97f7c |
|
BLAKE2b-256 | 24c583ae497c82bcc2986a3b354941f6b8416d1e96799a348d37047e3b5bf38c |