Sass renderer plugin for Hexo with Typesettings support.
$ npm install hexo-renderer-sass-typesettings --save
To enable Typesettings support you need to import it at the beginning of your stylesheet:
@import 'typesettings';
This renderer supports all node-sass settings. Check out the node-sass docs for all available options. Anything specified under the key typesettings
in your _config.yml
files will
be passed to the sass.render()
call.
typesettings:
outputStyle: compressed
indentedSyntax: false
omitSourceMapUrl: true
sourceMap: true
sourceMapEmbed: false
sourceMapContents: false
The config object passed to node-sass is constructed by merging properties from the following locations using a least-specific-first order:
- Hardcoded Defaults (
{ outputStyle: 'nested', sourceComments: false }
) - Theme specific
_config.yml
- Blog root
_config.yml