docusaurus-plugin-less
Provides support for Less to Docusaurus v2
Getting Started
-
Install
docusaurus-plugin-less
:npm i -S docusaurus-plugin-less
or
yarn add docusaurus-plugin-less
-
Add the plugin to your
docusaurus.config.js
:module.exports = { // ... + plugins: ["docusaurus-plugin-less"], // ... }
or with
options
:module.exports = { // ... + plugins: ["docusaurus-plugin-less", { /* options */ sourceMap: false }], // ... }
-
Write and import your stylesheets in Less as normal.