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
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ And run `webpack` via your preferred method.
66
66
-**[`sourceMap`](#sourcemap)**
67
67
-**[`webpackImporter`](#webpackimporter)**
68
68
-**[`implementation`](#implementation)**
69
+
-**[`lessLogAsWarnOrErr`](#lesslogaswarnorerr)**
69
70
70
71
### `lessOptions`
71
72
@@ -411,6 +412,52 @@ module.exports = {
411
412
};
412
413
```
413
414
415
+
### `lessLogAsWarnOrErr`
416
+
417
+
Type:
418
+
419
+
```ts
420
+
typelessLogAsWarnOrErr=boolean;
421
+
```
422
+
423
+
Default: `false`
424
+
425
+
`Less` warnings and errors will be webpack warnings and errors, not just logs.
426
+
427
+
**warning.less**
428
+
429
+
```less
430
+
div {
431
+
&:extend(.body1);
432
+
}
433
+
```
434
+
435
+
If `lessLogAsWarnOrErr` is set to `false` it will be just a log and webpack will compile successfully, but if you set this option to `true` webpack will compile fail with a warning.
0 commit comments