Libsasscompiler
A fast scss/sass compiler for django-pipeline using python libsass port (no needed of ruby-sass anymore)
Requirements
Same as django-pipeline
Install
pip install libsasscompiler
Usage
Add to your pipeline compiler
PIPELINE['COMPILERS'] = (
'libsasscompiler.LibSassCompiler',
)
Optional: add extra include paths for @import resolution.
LIBSASSCOMPILER_INCLUDE_PATHS = [
'/path/to/shared/styles',
'/path/to/another/scss/dir',
]
These paths are passed to sass.compile(..., include_paths=...).
Imports are resolved from:
- the directory of the source scss/sass file
LIBSASSCOMPILER_INCLUDE_PATHS(if defined)
Example:
@import "shared";
With LIBSASSCOMPILER_INCLUDE_PATHS = ['/path/to/shared/styles'], libsass will resolve /path/to/shared/styles/shared.scss.
Contribute
- Fork
- create a branch
feature/your_feature - commit - push - pull request
Thanks :)
Release files for libsasscompiler 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| libsasscompiler-0.2.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libsasscompiler-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / libsasscompiler-0.2.1.tar.gz
| Download URL | libsasscompiler-0.2.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a8d0d9d77c21a363c80777eb21907eb4eb0b3c01c5e801d4b836bd83a67ecde
|
|
BLAKE2b-256 checksum How to use checksums |
e3b36f90b8d55918c9828f5d9fd463f71928ba671c634ab1ea2f136f5d278b89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / libsasscompiler-0.2.1-py3-none-any.whl
| Download URL | libsasscompiler-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d9726a569be0002f30ec9379f59b840552e53c197689124584873db7e831c71
|
|
BLAKE2b-256 checksum How to use checksums |
2590e7daaf6791b14692bd084c36449164376f7ebed8a03ebff1e4bf67ddf8aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|