Home

Awesome

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 = {})

License

esbuild-plugin-less is WTFPL licensed.

FOSSA Status