{"library":"less-loader","type":"library","category":null,"description":"A webpack loader that compiles Less files into CSS. Current stable version is 12.3.2 (March 2026), with frequent releases addressing compatibility and bug fixes. Requires Node.js >=18.12.0 as of v12.0.0 (breaking change). Supports Less 3.x or 4.x, webpack 5, and optionally @rspack/core. Key differentiators: tight integration with webpack's module system, support for webpackImporter, and the ability to pass Less options dynamically via loader context.","language":"javascript","status":"active","version":"12.3.2","tags":["javascript","webpack","loader","less","lesscss","less.js","css","preprocessor"],"last_verified":"Wed May 27","install":[{"cmd":"npm install less-loader","imports":["module.exports = { module: { rules: [ { test: /\\.less$/i, use: [ 'style-loader', 'css-loader', 'less-loader' ] } ] } }","import type { LessOptions } from 'less';\n// Or: type LessOptions = import('less').options","import type { LoaderContext } from 'webpack';\n// Or: type LoaderContext = import('webpack').LoaderContext"]},{"cmd":"yarn add less-loader","imports":[]},{"cmd":"pnpm add less-loader","imports":[]}],"homepage":"https://webpack.js.org/loaders/less-loader","github":"https://github.com/webpack/less-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/less-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/less-loader/compatibility"}}