Skip to content

Commit ddb32f2

Browse files
srilmanskipjack
authored andcommitted
docs(concepts): update targets (#1520)
Removed the example of a Webpack setup for building to both electron and web because it uses an old plugin for electron-renderer support even though Webpack has native support for target. Added example boilerplate which contains good examples of configuration files for both electron-main and electron-renderer.
1 parent ac8cf3d commit ddb32f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/concepts/targets.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ contributors:
55
- TheLarkInn
66
- rouzbeh84
77
- johnstew
8+
- srilman
89
---
910

1011
Because JavaScript can be written for both server and browser, webpack offers multiple deployment _targets_ that you can set in your webpack [configuration](/configuration).
@@ -65,6 +66,6 @@ The example above will create a `lib.js` and `lib.node.js` file in your `dist` f
6566
As seen from the options above there are multiple different deployment _targets_ that you can choose from. Below is a list of examples, and resources that you can refer to.
6667

6768
* **[compare-webpack-target-bundles](https://github.com/TheLarkInn/compare-webpack-target-bundles)**: A great resource for testing and viewing different webpack _targets_. Also great for bug reporting.
68-
* **[Build to both electron.js and browser targets using webpack](https://medium.com/@ad_harmonium/build-to-both-electron-js-and-browser-targets-using-webpack-59266bdb76a)**: An example of a build process using multiple deployment targets with electron and web.
69+
* **[Boilerplate of Electron-React Application](https://github.com/chentsulin/electron-react-boilerplate)**: A good example of a build process for electron's main process and renderer process.
6970

7071
?> Need to find up to date examples of these webpack targets being used in live code or boilerplates.

0 commit comments

Comments
 (0)