sass

Build CSS out of Sass sources

To install, run nikola plugin -i sass

Compile SASS source files into CSS.

To use this plugin:

Create a sass folder in your theme, put your .scss files there, add a sass/targets file listing the files you want compiled.

Also don't forget to set the right SASS compiler, usually the most used was sass installed with ruby-sass but is now deprecated basically everywhere. Instead sassc it is the new one (and it is compatible) so you can use both, set the chosen one with the conf.py parameter SASS_COMPILER.

Note: in some cases, you might have to run nikola build twice.

Suggested Configuration:

# Compiler to process Sass files.
SASS_COMPILER = 'sass'

# A list of options to pass to the Sass compiler.
# Final command is: SASS_COMPILER SASS_OPTIONS file.s(a|c)ss
SASS_OPTIONS = []

Requirements:

  • SASS (Third-Party software)

Issues? Questions?

You can report issues with this plugin and request help via GitHub Issues.