Skip to content

Commit 99cbac1

Browse files
alexanderchrGvozd
authored andcommitted
Add editor section in readme
1 parent c1a0a5b commit 99cbac1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,13 @@ Do not notify on the first build. This allows you to receive notifications on s
131131
```js
132132
new WebpackNotifierPlugin({skipFirstNotification: true});
133133
```
134+
135+
### Editor
136+
137+
Opens the file in your editor when the notification is clicked.
138+
139+
Takes a command and a list or arguments interpreted as template strings. Available options are `file`, `line` and `column`. Note that lines and columns of errors are only set when using a preprocessor like babel.
140+
141+
```js
142+
new WebpackNotifierPlugin({ editor: { command: 'atom', args: ['${file}:${line}'] } });
143+
```

0 commit comments

Comments
 (0)