Skip to content

Commit aa357c9

Browse files
authored
Merge pull request webpack#849 from pawsong/patch-1
Fix descriptions for electron target
2 parents 7a6540b + ce2f7c9 commit aa357c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/configuration/target.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ Tells webpack which environment the application is targeting. The following valu
2020
| `target` | Description |
2121
| ------------- |------------------------|
2222
| `async-node`| Compile for usage in a Node.js-like environment (uses `fs` and `vm` to load chunks asynchronously) |
23-
| `electron` | Compile for [Electron](http://electron.atom.io/) renderer process, provide a target using `JsonpTemplatePlugin`, `FunctionModulePlugin` for browser environments and `NodeTargetPlugin` and `ExternalsPlugin` for CommonJS and Electron built-in modules. |
24-
| `electron-renderer` | Compile for [Electron](http://electron.atom.io/) for `renderer-process` |
23+
| `electron` | Alias for `electron-main` |
24+
| `electron-main` | Compile for [Electron](http://electron.atom.io/) for main process. |
25+
| `electron-renderer` | Compile for [Electron](http://electron.atom.io/) for renderer process, providing a target using `JsonpTemplatePlugin`, `FunctionModulePlugin` for browser environments and `NodeTargetPlugin` and `ExternalsPlugin` for CommonJS and Electron built-in modules. |
2526
| `node` | Compile for usage in a Node.js-like environment (uses Node.js `require` to load chunks) |
2627
|`node-webkit`| Compile for usage in WebKit and uses JSONP for chunk loading. Allows importing of built-in Node.js modules and [`nw.gui`](http://docs.nwjs.io/en/latest/) (experimental) |
2728
|`web`| Compile for usage in a browser-like environment **(default)** |

0 commit comments

Comments
 (0)