Stylus renderer for Hexo
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test Update test specs to improve test coverages Mar 15, 2017
.eslintignore
.eslintrc Use eslint and jscs. Lazy require deps. Feb 11, 2016
.gitignore
.jscsrc
.npmignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

hexo-renderer-stylus

Build Status NPM version Coverage Status

Add support for Stylus with nib.

Install

Prerequisites:

  • Hexo 3: >= 0.2
  • Hexo 2: 0.1.x
$ npm install hexo-renderer-stylus --save

Options

You can configure this plugin in _config.yml.

stylus:
  compress: false
  sourcemaps:
    comment: true
    inline: true
    sourceRoot: ''
    basePath: .
  • Stylus:

    • compress - Compress generated CSS (default: false)
  • Sourcemaps

    • comment - Adds a comment with the sourceMappingURL to the generated CSS (default: true)
    • inline - Inlines the sourcemap with full source text in base64 format (default: false)
    • sourceRoot - sourceRoot property of the generated sourcemap
    • basePath - Base path from which sourcemap and all sources are relative (default: .)