Skip to main content

SASS compiler for Lektor, thats based on libsass.

Project description

SCSScompile

PyPI version

SCSS compiler for Lektor that automatically compiles sass.

Uses libsass and looks for .scss/.sass files (ignores part files that begin with a underscore e.g. '_testfile.scss'), compiling them as part of the build process.

Installing

You can install the plugin with Lektor's installer::

lektor plugins add lektor-scsscompile

Or by hand, adding the plugin to the packages section in your lektorproject file::

[packages]
lektor-scsscompile = 0.3

Usage

To enable scsscompile, pass the scsscompile flag when starting the development server or when running a build::

lektor build -f scsscompile

The Plugin has the following settings you can adjust to your needs:

parameter default value description
source_dir asset_sources/scss/ the directory in which the plugin searchs for sass files (subdirectories are included)
output_dir assets/css/ the directory the compiled css files get place at
output_style compressed coding style of the compiled result. choose one of: 'nested', 'expanded', 'compact', 'compressed'
source_comments False whether to add comments about source lines
precision 5 precision for numbers

An example file with the default config can be found at configs/scsscompile.ini

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

lektor-scsscompile-0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

lektor_scsscompile-0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file lektor-scsscompile-0.2.tar.gz.

File metadata

  • Download URL: lektor-scsscompile-0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for lektor-scsscompile-0.2.tar.gz
Algorithm Hash digest
SHA256 896f2f3b9adb0dc8e3083327484af896a52d730f1d12fd14a1174d0ac0bb491c
MD5 b9471e528f02a13ea36c44e3a7051406
BLAKE2b-256 5c1bb442b87a68edec1c33dc54bfcb87d224900feb95c00e78584375f97b9223

See more details on using hashes here.

File details

Details for the file lektor_scsscompile-0.2-py3-none-any.whl.

File metadata

  • Download URL: lektor_scsscompile-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for lektor_scsscompile-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2924c07be63f570e5f3eae04c7c5521dba43323aa996546b3a667925c3314661
MD5 cbc1b3792444b71054724f5c29af16a7
BLAKE2b-256 3813c292be5a2776ef9b877cefd20a9e03b4b25e671688fb12ee47d1bf8a0aec

See more details on using hashes here.

Supported by

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