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
45
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.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
increased by1.5%
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

FAQs

Package last updated on 26 Nov 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

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