New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-plugin-less

Package Overview
Dependencies
Maintainers
1
Versions
52
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.3.9
Source
npm
Version published
Weekly downloads
19K
-3.03%
Maintainers
1
Weekly downloads
 
Created
Source

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

esbuild-plugin-less

esbuild plugin for less files.

Installation

yarn add esbuild-plugin-less -D

Usage

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()], // Just plug in
  loader: {
    '.ts': 'ts',
  },
});

Configuration

lessLoader(lessOptions: Less.Options = {}, loaderOptions: LoaderOptions = {})
  • options — Accepts all valid options from less.js. You can find a complete list of options here.
  • loaderOptions — Options for the loader. Supports custom esbuild filter.

License

esbuild-plugin-less is WTFPL licensed.

FOSSA Status

Keywords

esbuild

FAQs

Package last updated on 27 Aug 2024

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