Skip to main content

Build Status Coverage Status PyPI version

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:

  1. the directory of the source scss/sass file
  2. 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

  1. Fork
  2. create a branch feature/your_feature
  3. 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)

Source distribution for libsasscompiler 0.2.1
File Size Uploaded
libsasscompiler-0.2.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libsasscompiler 0.2.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.9

1 release file

0.1.8

2 release files

0.1.7

2 release files

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1.3

1 release file

0.1.1.2

1 release file

0.1.1.1

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page