Skip to content

Commit d47da9a

Browse files
committed
Updates readme debug section
1 parent c46614a commit d47da9a

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,13 @@ metalsmith.use(remove(['drafts/*', 'unfinished/*'])) // multiple patterns
3737

3838
### Debug
3939

40-
To enable debug logs, set the `DEBUG` environment variable to `@metalsmith/remove`:
40+
To enable debug logs, set the `DEBUG` environment variable to `@metalsmith/remove*`:
4141

42-
Linux/Mac:
43-
44-
```bash
45-
DEBUG=@metalsmith/remove
42+
```js
43+
metalsmith.env('DEBUG', '@metalsmith/remove*')
4644
```
4745

48-
Windows:
49-
50-
```batch
51-
set "DEBUG=@metalsmith/remove"
52-
```
46+
Alternatively you can set `DEBUG` to `@metalsmith/*` to debug all Metalsmith core plugins.
5347

5448
### CLI Usage
5549

0 commit comments

Comments
 (0)