SASS compiler for Lektor, thats based on libsass.
Project description
SCSScompile
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 = 1.0.1
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lektor_scsscompile-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43d8f01778f8a0f86d961f2172309288bdbaf1d59a87db68b37385ec146d590d |
|
MD5 | fb9bba1aad497fd91232d01aaeeba706 |
|
BLAKE2b-256 | f1a8c55c4664978d0d82351abd640547549f593db5e3a2c6522b8df50745c401 |