Skip to content

Commit ff1a7be

Browse files
docs: improve logLevel option description (#346)
1 parent d5788db commit ff1a7be

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

README.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ module.exports = {
373373

374374
| Name | Type | Default | Description |
375375
| :---------------------------------: | :---------: | :------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------ |
376-
| [`logLevel`](#logLevel) | `{String}` | **`'warn'`** | Level of messages that the module will log |
376+
| [`logLevel`](#logLevel) | `{String}` | **`'warn'`** | Level of messages that the module will log |
377377
| [`ignore`](#ignore) | `{Array}` | `[]` | Array of globs to ignore (applied to `from`) |
378378
| [`context`](#context) | `{String}` | `compiler.options.context` | A path that determines how to interpret the `from` path, shared for all patterns |
379379
| [`copyUnmodified`](#copyUnmodified) | `{Boolean}` | `false` | Copies files, regardless of modification when using watch or `webpack-dev-server`. All files are copied on first build, regardless of this option |
@@ -385,7 +385,7 @@ This property defines the level of messages that the module will log. Valid leve
385385
- `trace`
386386
- `debug`
387387
- `info`
388-
- `warn`
388+
- `warn` (default)
389389
- `error`
390390
- `silent`
391391

@@ -394,33 +394,11 @@ console. Setting `logLevel: 'silent'` will hide all console output. The module
394394
leverages [`webpack-log`](https://github.com/webpack-contrib/webpack-log#readme)
395395
for logging management, and more information can be found on its page.
396396

397-
##### `'info'`
398-
399-
**webpack.config.js**
400-
401-
```js
402-
module.exports = {
403-
plugins: [new CopyPlugin([...patterns], { debug: 'info' })],
404-
};
405-
```
406-
407-
##### `'debug'`
408-
409-
**webpack.config.js**
410-
411-
```js
412-
module.exports = {
413-
plugins: [new CopyPlugin([...patterns], { debug: 'debug' })],
414-
};
415-
```
416-
417-
##### `'warning' (default)`
418-
419397
**webpack.config.js**
420398

421399
```js
422400
module.exports = {
423-
plugins: [new CopyPlugin([...patterns], { debug: true })],
401+
plugins: [new CopyPlugin([...patterns], { logLevel: 'debug' })],
424402
};
425403
```
426404

0 commit comments

Comments
 (0)