django pipeline scss/sass compiler, no needed of ruby
Project description
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 :)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libsasscompiler-0.2.1.tar.gz.
File metadata
- Download URL: libsasscompiler-0.2.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a8d0d9d77c21a363c80777eb21907eb4eb0b3c01c5e801d4b836bd83a67ecde
|
|
| MD5 |
ec4c6cb037835457f34e9fb5339b9a22
|
|
| BLAKE2b-256 |
e3b36f90b8d55918c9828f5d9fd463f71928ba671c634ab1ea2f136f5d278b89
|
File details
Details for the file libsasscompiler-0.2.1-py3-none-any.whl.
File metadata
- Download URL: libsasscompiler-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d9726a569be0002f30ec9379f59b840552e53c197689124584873db7e831c71
|
|
| MD5 |
966a2d9fbe072de5dfe4cc76b96c5a76
|
|
| BLAKE2b-256 |
2590e7daaf6791b14692bd084c36449164376f7ebed8a03ebff1e4bf67ddf8aa
|