chenxixian 26f6b37cfe add files 6 years ago
..
lib 26f6b37cfe add files 6 years ago
node_modules 26f6b37cfe add files 6 years ago
.eslintignore 26f6b37cfe add files 6 years ago
.eslintrc 26f6b37cfe add files 6 years ago
.jscsrc 26f6b37cfe add files 6 years ago
.npmignore 26f6b37cfe add files 6 years ago
LICENSE 26f6b37cfe add files 6 years ago
README.md 26f6b37cfe add files 6 years ago
index.js 26f6b37cfe add files 6 years ago
package.json 26f6b37cfe add files 6 years ago

README.md

hexo-renderer-stylus

Build Status NPM version Coverage Status

Add support for Stylus with nib.

Install

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

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: .)