UNPKG

1.63 kBMarkdownView Raw
1[Sass] renderer plugin for [Hexo]
2=================================
3
4[![npm version](https://badge.fury.io/js/hexo-renderer-sass.svg)](https://badge.fury.io/js/hexo-renderer-sass)
5[![Build Status](https://travis-ci.org/knksmith57/hexo-renderer-sass.svg?branch=master)](https://travis-ci.org/knksmith57/hexo-renderer-sass)
6[![Coverage Status](https://coveralls.io/repos/github/knksmith57/hexo-renderer-sass/badge.svg?branch=master)](https://coveralls.io/github/knksmith57/hexo-renderer-sass?branch=master)
7
8> A hexo plugin for node-sass
9
10## Install
11```sh
12$ npm install --save hexo-renderer-sass
13```
14
15## Config
16Anything specified under the key `node_sass` in your `_config.yml` files will
17be [passed directly] to the `sass.render()` call. Check out the [node sass options docs]
18for all available settings.
19
20### _config.yml
21```yaml
22node_sass:
23 outputStyle: nested
24 precision: 5
25 sourceComments: false
26```
27
28### Inheritance
29The config object passed to node sass is constructed by merging properties from
30the following locations using a least-specific-first order:
31
321. Hardcoded Defaults (`{outputStyle: 'nested',sourceComments: false}`)
332. Theme specific `_config.yml`
343. Blog root `_config.yml`
35
36
37## ♥︎
38Questions, comments, concerns?
39* [@JLHwung](https://github.com/JLHwung)
40* [@jojoee](https://github.com/jojoee)
41* [@knksmith57](https://github.com/knksmith57)
42
43
44[Hexo]: http://hexo.io
45[Sass]: http://sass-lang.com/
46[node-sass]: https://github.com/andrew/node-sass
47[passed directly]: index.js:#L22
48[node sass options docs]: https://github.com/sass/node-sass#options
49