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

rollup-plugin-less

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-less

a rollup plugin for less files

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.6K
increased by10.56%
Maintainers
1
Weekly downloads
 
Created
Source

Install

npm install rollup-plugin-less --save

usage

import './test.less';
//generate css will be auto insert to the head tag
import { rollup } from 'rollup';
import less from 'rollup-plugin-less';

rollup({
    entry: 'main.js',
    plugins: [
        less({
            output: '',
            option: {
                //less render option
            }
        })
    ]
});

options

  • output Optional. Type: String || Function if you specify a string, it will be the path to write the generated CSS. If you specify a function, call it passing the generated CSS and id(less file path) as an argument.

  • option

Optional. Type: Object

Options for less.js.

Keywords

FAQs

Package last updated on 15 Aug 2016

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