You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ And run `webpack` via your preferred method.
56
56
|**[`additionalData`](#additionalData)**|`{String\|Function}`|`undefined`| Prepends/Appends `Less` code to the actual entry file. |
57
57
|**[`sourceMap`](#sourcemap)**|`{Boolean}`|`compiler.devtool`| Enables/Disables generation of source maps. |
58
58
|**[`webpackImporter`](#webpackimporter)**|`{Boolean}`|`true`| Enables/Disables the default Webpack importer. |
59
-
|**[`implementation`](#implementation)**|`{Object}`|`less`| Setup Less implementation to use. |
59
+
|**[`implementation`](#implementation)**|`{Object\|String}`|`less`| Setup Less implementation to use. |
60
60
61
61
### `lessOptions`
62
62
@@ -316,14 +316,16 @@ module.exports = {
316
316
317
317
### `implementation`
318
318
319
-
Type: `Object`
319
+
Type: `Object | String`
320
320
321
321
> ⚠ less-loader compatible with Less 3 and 4 versions
322
322
323
323
The special `implementation` option determines which implementation of Less to use. Overrides the locally installed `peerDependency` version of `less`.
324
324
325
325
**This option is only really useful for downstream tooling authors to ease the Less 3-to-4 transition.**
0 commit comments