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

esbuild-plugin-less

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-less

esbuild plugin for less files

  • 1.1.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24K
increased by12.3%
Maintainers
1
Weekly downloads
 
Created
Source

License: WTFPL TypeScript code style: prettier npm version libraries.io Codecov FOSSA Status semantic-release

esbuild-plugin-less

esbuild plugin for less files

Install

yarn add esbuild-plugin-less -D

Usage

Simple example

You can see the example here.

import { build } from 'esbuild';
import { lessLoader } from 'esbuild-plugin-less';

build({
  entryPoints: [path.resolve(__dirname, 'index.ts')],
  bundle: true,
  outdir: path.resolve(__dirname, 'output'),
  plugins: [lessLoader()],
  loader: {
    '.ts': 'ts',
  },
});

Watch mode

More information about watch mode here.

import { build } from 'esbuild';
import { lessLoader } from 'esbuild-plugin-less';

build({
  watch: true, // enable watch mode
  entryPoints: [path.resolve(__dirname, 'index.ts')],
  bundle: true,
  outdir: path.resolve(__dirname, 'output'),
  plugins: [lessLoader()],
  loader: {
    '.ts': 'ts',
  },
});

Options

lessLoader accepts all valid options from less.js. You can find a complete list of options here.

LoaderOptions loader options, support custom filter

{
  filter: /\.less$/,
}

License

esbuild-plugin-less is WTFPL licensed.

FOSSA Status

Keywords

FAQs

Package last updated on 16 Jan 2023

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