Skip to content

hexojs/hexo-renderer-less

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Less renderer

Build Status NPM version Coverage Status

Add support for Less.

Install

$ npm install hexo-renderer-less --save

Configure

In your theme configuration,

# themes/yourtheme/_config.yml
less:
  paths: []
  options:
  • paths: Array of include paths.
    • e.g. to include Bower Bootstrap, ['bower_components/bootstrap/less']
    • globbing is also supported, ['bower_components/bootstrap/**']
  • options: Less.js options.
    • Example:
    less:
      options:
        globalVars:
          var1: 'some value'