Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sass Processor

Purpose

Compiles SCSS and SASS files into CSS using the Sass compiler.

How It Works

Files matching configured extensions in the sass/ directory are compiled to CSS. Output is written to out/sass/ preserving the directory structure:

sass/style.scss  ->  out/sass/style.css
sass/components/button.scss  ->  out/sass/components/button.css

Source Files

  • Input: sass/**/*{src_extensions}
  • Output: out/sass/ mirroring the source structure with .css extension

Configuration

[processor.sass]
sass_bin = "sass"                         # Sass compiler binary (default: "sass")
src_extensions = [".scss", ".sass"]           # File extensions to process
output_dir = "out/sass"                   # Output directory (default: "out/sass")
dep_inputs = []                         # Additional files that trigger rebuilds
KeyTypeDefaultDescription
sass_binstring"sass"Path to sass compiler
src_extensionsstring[][".scss", ".sass"]File extensions to discover
output_dirstring"out/sass"Output directory
dep_inputsstring[][]Extra files whose changes trigger rebuilds

Batch support

Each input file is processed individually, producing its own output file.