django pipeline scss/sass compiler, no needed of ruby
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install libsasscompilerLibsasscompiler
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 :)