Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@docusaurus-plugin/less

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus-plugin/less

less plugin for docusaurus v2

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@docusaurus-plugin/less

support less in docusaurus

Support less stylesheet language in docusaurus v2.

Installation

  • using npm
$ npm i @docusaurus-plugin/less less less-loader -D
  • using yarn
$ yarn add @docusaurus-plugin/less less less-loader -D

How to use

  • Without less-loader options

    // docusaurus.config.js
    module.exports = {
      // omit unrelated docusaurus options
      plugins: ['@docusaurus-plugin/less']
    }
    
  • With less-loader options

    // docusaurus.config.js
    module.exports = {
      plugins: [
        '@docusaurus-plugin/less',
        {
          // less-loader options
          // https://github.com/webpack-contrib/less-loader#options
        }
      ]
    }
    

Regular less

// App.tsx
import './global.less'

Less CSS Modules

// Button.tsx
import styles from './button.module.less'

export default function Button({ children }) {
  return <button classNames={styles.button}>{children}</button>
}

Keywords

FAQs

Package last updated on 10 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc