You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: src/content/concepts/targets.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ contributors:
5
5
- TheLarkInn
6
6
- rouzbeh84
7
7
- johnstew
8
+
- srilman
8
9
---
9
10
10
11
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
65
66
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.
66
67
67
68
***[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.
69
70
70
71
?> Need to find up to date examples of these webpack targets being used in live code or boilerplates.
0 commit comments