Skip to main content

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/*

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-sass-processor-dart-sass-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file django-sass-processor-dart-sass-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-sass-processor-dart-sass-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec8bcc30827836831040abf3b203e4e057ac6cd7cfbd15ea6fce869f1dce268b
MD5 925629b21a70080da94cd809b349d639
BLAKE2b-256 8ce5fc77a83f1bdec5850d52b5cfbd295a0aaf20cb5fcf16af46bb4214609127

See more details on using hashes here.

File details

Details for the file django_sass_processor_dart_sass-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sass_processor_dart_sass-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 426e70c945e5fc81f7f4b3051a55b2fbf69f0cfdf1b4eb19d187b8ea4c54e4f7
MD5 5b7ae4fcc4edc1589f4bf7ff3da97f7c
BLAKE2b-256 24c583ae497c82bcc2986a3b354941f6b8416d1e96799a348d37047e3b5bf38c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page