Skip to main content

django pipeline scss/sass compiler, no needed of ruby

Project description

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 :)

Project details


Download files

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

Source Distribution

libsasscompiler-0.2.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

libsasscompiler-0.2.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for libsasscompiler-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1a8d0d9d77c21a363c80777eb21907eb4eb0b3c01c5e801d4b836bd83a67ecde
MD5 ec4c6cb037835457f34e9fb5339b9a22
BLAKE2b-256 e3b36f90b8d55918c9828f5d9fd463f71928ba671c634ab1ea2f136f5d278b89

See more details on using hashes here.

File details

Details for the file libsasscompiler-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for libsasscompiler-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9726a569be0002f30ec9379f59b840552e53c197689124584873db7e831c71
MD5 966a2d9fbe072de5dfe4cc76b96c5a76
BLAKE2b-256 2590e7daaf6791b14692bd084c36449164376f7ebed8a03ebff1e4bf67ddf8aa

See more details on using hashes here.

Supported by

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