NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3342 most downloaded on npm
A Less loader for webpack. Compiles Less to CSS.
Last release 4 months ago
20 May 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Most releases are documented
notes for 49 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
73 releases · first in 2012
Minimum supported Node.js version is now >= 22.11.0. (by @alexander-akait in #590)
Minimum supported Node.js version is now >= 22.11.0. (by @alexander-akait in #590)
The package now ships native ESM as well as CommonJS. "type": "module" is set, and an exports map exposes dist/esm/index.js to import and dist/cjs/index.js to require. Less is loaded via dynamic import() instead of require(). (by @alexander-akait in #593)
lessLogAsWarnOrErr now defaults to true. Less warnings and errors are emitted as webpack warnings and errors by default. Set the option to false to restore the previous behavior of logging silently. (by @alexander-akait in #600)
data-uri() and custom functions installed via @plugin) as webpack file dependencies. See #492. (by @alexander-akait in #596)All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
One column per quarter.
Minimum supported Node.js version is now >= 22.11.0. (by @alexander-akait in #590)
The package now ships native ESM as well as CommonJS. "type": "module" is set, and an exports map exposes dist/esm/index.js to import and dist/cjs/index.js to require. Less is loaded via dynamic import() instead of require(). (by @alexander-akait in #593)
lessLogAsWarnOrErr now defaults to true. Less warnings and errors are emitted as webpack warnings and errors by default. Set the option to false to restore the previous behavior of logging silently. (by @alexander-akait in #600)
data-uri() and custom functions installed via @plugin) as webpack file dependencies. See #492. (by @alexander-akait in #596)All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
### 12.3.3 (2026-05-19) ### Bug Fixes * revert ESM dynamic import
compatibility with ECMA modules less version
update peer dependency for @rspack/core v2
add support for using only webpackImporter
add @rspack/core as an optional peer dependency
added the lessLogAsWarnOrErr option
minimum supported Node.js version is 18.12.0
invalid dependencies with working directory
perf: avoid using klona for less options
### 11.1.2 (2023-05-31) ### Bug Fixes * remove unused v dependency
## 11.1.0 (2022-10-06) ### Features * allow to extend conditionNames
minimum supported Node.js version is 14.15.0
## 10.2.0 (2021-10-18) ### Features * use webpack logger for logging
only call addDependency on absolute paths
### 10.0.1 (2021-07-02) ### Bug Fixes * memory leak
less.webpackLoaderContext was removed, please use pluginManager.webpackLoaderContext
allow to use String value for the implementation option
minimum supported Node.js version is 12.13.0
### 8.1.1 (2021-04-15) ### Bug Fixes * deprecation warning
added the pluginManager.webpackLoaderContext property for less plugin developers, deprecated the less.webpackLoaderContext property, it fixed memory l…
using ~ is deprecated and can be removed from your code (we recommend it), but we still support it for historical reasons.
~ is deprecated and can be removed from your code (we recommend it), but we still support it for historical reasons.Why you can removed it?
The loader will first try to resolve @import as relative, if it cannot be resolved, the loader will try to resolve @import inside node_modules.
webpack version is 5resolve.byDependency option, you can setup { resolve: { byDependency: { less: { mainFiles: ['custom', '...'] } } } }added the implementation option
### 7.2.1 (2020-12-28) ### Bug Fixes * errors from less
add less ^4.0 to peerDependencies
allow the additionalData to be async
### 7.0.2 (2020-10-09) ### Chore * update schema-utils
normalize sources in source maps
move less to peerDependencies, the implementation option was removed
less to peerDependencies, the implementation option was removedprependData and appendData option were removed in favor the additionaldata optionsupport condition names from package.json
### 6.1.3 (2020-06-29) ### Bug Fixes * revert restrictions
resolve absolute and root relative imports
do not rebuilt unmodified files on windows in watch mode
minimum supported Node.js version is 10.13,
10.13,42 version of less is not supported anymore3 versin of less by default, so you don't need to have less in your package.json, we already supply itlessOptions option, please look at READMEpaths options now works with webpack resolver (3931470)lessOptions (#325) (a6be94a)appendData option (#336) (fb94605)prependData option (#327) (9df8755)less and style fields in package.jsonindex.less file for packages@import 'package/file.ess'; and @import './package/file.ess';10.13,42 version of less is not supported anymore3 versin of less by default, so you don't need to have less in your package.json, we already supply itlessOptions option, please look at READMEpaths options now works with webpack resolver (3931470)lessOptions (#325) (a6be94a)appendData option (#336) (fb94605)prependData option (#327) (9df8755)less and style fields in package.jsonindex.less file for packages@import 'package/file.ess'; and @import './package/file.ess';<a name="5.0.0"></a>
<a name="4.1.0"></a>
<a name="4.0.6"></a>
remove deprecated compress option
<a name="5.0.0"></a>
package: support less >= v3.0.0
package: add webpack >= v4.0.0 (peerDependencies)
## 4.0.5 (2017-07-10) ### Chore * support webpack@3
resolve [@import](https://github.com/import) with absolute paths (#201) (a3f9601), closes webpack-contrib/less-loader#93
[@import](https://github.com/import) with absolute paths (#201) (a3f9601), closes webpack-contrib/less-loader#93sourcesContent missing in source maps
Plugin.install is not a function
wrong entry point in package.json (918bfe9), closes #161 #179 #177
<a name="4.0.0"></a>
resolve.alias with a .less extension, you can now remove that wrong extension.The root option was never documented, so it's very unlikely that this is actually a breaking change. However, since the option was removed, we need to…
resolve.alias with a .less extension, you can now remove that wrong extension.Breaking: Remove official webpack 1 support. There are no breaking changes for webpack 1 with 3.0.0, but future release won't be tested against webpac…
3.0.0, but future release won't be tested against webpack 1package.jsonFix missing path information in source map #73
Fix issues with synchronous less functions like data-uri(), image-size(), image-width(), image-height() #31 #38 #43 #58
Nothing published for this version
Added option to specify LESS plugins #40
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →