From 65e76f37dbcf36c8fabfa081d572afddcae967c5 Mon Sep 17 00:00:00 2001 From: Srinivas Lade Date: Sun, 13 Aug 2017 17:22:43 -0400 Subject: [PATCH 1/2] Updated Target Resources with Newer Examples 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 --- src/content/concepts/targets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/concepts/targets.md b/src/content/concepts/targets.md index 279d45292926..8686eb9f0ea2 100644 --- a/src/content/concepts/targets.md +++ b/src/content/concepts/targets.md @@ -65,6 +65,6 @@ The example above will create a `lib.js` and `lib.node.js` file in your `dist` f 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. * **[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. -* **[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. +* **[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. ?> Need to find up to date examples of these webpack targets being used in live code or boilerplates. From d10681751a2f13cbe6aca2b1b9c3a639cde03f85 Mon Sep 17 00:00:00 2001 From: Srinivas Lade Date: Sun, 13 Aug 2017 17:28:43 -0400 Subject: [PATCH 2/2] Update targets.md --- src/content/concepts/targets.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/concepts/targets.md b/src/content/concepts/targets.md index 8686eb9f0ea2..e2425840c2c9 100644 --- a/src/content/concepts/targets.md +++ b/src/content/concepts/targets.md @@ -5,6 +5,7 @@ contributors: - TheLarkInn - rouzbeh84 - johnstew + - srilman --- Because JavaScript can be written for both server and browser, webpack offers multiple deployment _targets_ that you can set in your webpack [configuration](/configuration).