chenxixian 26f6b37cfe add files 6 年之前
..
LICENSE 26f6b37cfe add files 6 年之前
README.md 26f6b37cfe add files 6 年之前
index.js 26f6b37cfe add files 6 年之前
package.json 26f6b37cfe add files 6 年之前
yarn.lock 26f6b37cfe add files 6 年之前

README.md

Less renderer

Add support for Less.

Install

$ npm install hexo-renderer-less --save

Configure

You can specify a less include paths as an array config in your theme configuration.

// themes/yourtheme/_config.yml

less:
  paths:
    - bower_components/bootstrap/less

You can compress the output of the css with a config in your theme configuration.

// themes/yourtheme/_config.yml

less:
  compress: true