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. 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
Usage
To enable scsscompile, pass the scsscompile
flag when starting the development
server or when running a build:
lektor server -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
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
File details
Details for the file lektor-scsscompile-1.2.tar.gz
.
File metadata
- Download URL: lektor-scsscompile-1.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa405b5e09db4e12cc6be968cdb73036d9379c0de52de4057a40d161fb00f122 |
|
MD5 | cbea5f761cbf9d031faa88b7d30010ec |
|
BLAKE2b-256 | 38b64ff180be091a6086549560146efc98ba82d2cc18131cc4be3bac87f91fd1 |
File details
Details for the file lektor_scsscompile-1.2-py3-none-any.whl
.
File metadata
- Download URL: lektor_scsscompile-1.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 390b9cf545dfcef0185a473069544f9ae37c628b68db0c6bf0b84199bf4e30f0 |
|
MD5 | 601194f3d4072dc5dba4e999b339f5a3 |
|
BLAKE2b-256 | 5f578c48efc38812088df8b7b6b2722b886493283756693408b9c9a829907bd3 |