Sass integration for pub
Simply add the following lines to your
:::yaml dependencies: sass: any transformers: - sass
After adding the transformer your
.scss files will be automatically transformed to
You need to have Sass installed and available on the path.
You can also pass options to Sass if necessary:
:::yaml transformers: - sass: executable: /path/to/sass # Sass executable to use compass: true # Include compass line-numbers: true # Include line numbers in output style: compact # Style of generated CSS copy-sources: true # Copy original .scss/.sass files to output directory
You can use SassC instead of normal Sass by specifying executable as 'sassc' (or any path ending with 'sassc'):
:::yaml transformers: - sass: executable: sassc # or /path/to/sassc
SassC only supports
.scss-files and does not support Compass.
- UTF8-encoding is assumed for all input files.