Skip to main content

SASS compiler for Lektor, thats based on libsass.

Project description

SCSScompile

PyPI version Downloads

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. It only rebuilds when it's needed (file changed, a file it imports changed or the config changed). When starting the the development server it watchs the files for changes in the background and rebuilds them when needed.

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 = 1.2.1

Usage

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

lektor build -f scsscompile
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-1.2.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

lektor_scsscompile-1.2.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lektor-scsscompile-1.2.1.tar.gz
Algorithm Hash digest
SHA256 e26523c98087f3b5914b6b5a3954559f2e96077b427156c9e1ff0c29dc3c8631
MD5 11307a3f061cec276bba252e484f4a96
BLAKE2b-256 72374c78f61f5366dce02ac9544865727cffe2846189e89638451be6278aa0d0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lektor_scsscompile-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ddd4ab8f96c2a9bcaad50a882287cc2a719d88e9cdded796e36242abcde8b6
MD5 c69ab97731cf57777a2ea1d5bd9d5eb8
BLAKE2b-256 a4c8a710982ed31d827b765f63501f428cacbb54f6b97dc92f4e26774a7d3618

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