Skip to main content

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.3.0

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
output_source_map False whether a source map should be generated

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

Metadata

Release files for lektor-scsscompile 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lektor-scsscompile 1.3.0
File Size Uploaded
lektor-scsscompile-1.3.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lektor-scsscompile 1.3.0
File Interpreter ABI Platform
lektor_scsscompile-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / lektor-scsscompile-1.3.0.tar.gz

Download URL lektor-scsscompile-1.3.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3554f865ecc0dcf92cfc968a47b5dc2bc3fda6ebbbd4e407f4c9ea75bd5029d9
BLAKE2b-256 checksum
How to use checksums
5f07dcd826fcc8722cd432ffa8a41c730c0d7754c4de506622c54fa17872fdfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

Release files / lektor_scsscompile-1.3.0-py3-none-any.whl

Download URL lektor_scsscompile-1.3.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd0f28afddf639bfc1243a7fd0b25efcfd4378636bcfe9289764df364971b50d
BLAKE2b-256 checksum
How to use checksums
bc55f3dcce9ad4d83c90b1c0991c0b23c2858e921363eac5981c3cc934b86c7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.1

2 release files

1.0.1

2 release files

1.0

2 release files

0.2

2 release files

0.1

2 release files

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