Skip to content

Commit 1a1b070

Browse files
authored
Update target setting docs
Updates docs now that #24 has landed.
1 parent 8a00f7e commit 1a1b070

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,11 @@ module.exports = {
160160

161161
### `target`
162162

163-
Due to the way webpack works, it may be necessary to change the target environment of the workers.
163+
Due to the way webpack works, it may be necessary to change the target environment of the workers. Using this option you can override webpack's [`target` option](https://webpack.js.org/configuration/target/#root) just for the worker bundle. Defaults to the global webpack `target`.
164164

165-
Possible values:
165+
Frequently used values:
166166

167-
- `electron-node-worker` use this if you are using Electron and compiling web workers that have node integration enabled. See [Electron Multithreading](https://www.electronjs.org/docs/tutorial/multithreading).
168-
169-
Default value: `undefined`
167+
- `electron-node-worker`: use this if you are using Electron and compiling web workers that have node integration enabled. See [Electron Multithreading](https://www.electronjs.org/docs/tutorial/multithreading).
170168

171169
Example with electron node workers:
172170
```js

0 commit comments

Comments
 (0)