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
Hashes for django-sass-processor-dart-sass-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4f1f95c58ab1085d8c6d1daeae96af0d055537f17c2ac69f27c6d11212089d |
|
MD5 | c45f2ed68f284e0632c32c0113ca43d4 |
|
BLAKE2b-256 | 10a9a84ebde66f44bf0996f2d3f854e4e982f3267c748207b745a88ea725e4f5 |
Hashes for django_sass_processor_dart_sass-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5534ca88153cfefcb8aff61a1beae90b8095209fa777fe9557324e1431d7ba0 |
|
MD5 | 26cfb562d9c466c333b463abe8815e67 |
|
BLAKE2b-256 | 89c57dc59c53ba823efc6ea955fd69b0e92bab410e94f97dff0bbf6f12066029 |