esbuild-plugin-less
v1.3.12
Published
esbuild plugin for less files
Downloads
87,736
Readme
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.