Skip to content

Commit d2f9fc2

Browse files
committed
misc/ upgrade to Electron 12.0.1
1 parent b8230c9 commit d2f9fc2

File tree

3 files changed

+1093
-354
lines changed

3 files changed

+1093
-354
lines changed

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ The application code is managed by `main.ts`. In this sample, the app runs with
6666
The Angular component contains an example of Electron and NodeJS native lib import.
6767
You can disable "Developer Tools" by commenting `win.webContents.openDevTools();` in `main.ts`.
6868

69-
## Use Electron / NodeJS / 3rd party libraries
69+
## Use Electron / NodeJS libraries
7070

7171
This sample project runs in both modes (web and electron). To make this work, **you have to import your dependencies the right way**. Please check `providers/electron.service.ts` to watch how conditional import of libraries has to be done when using electron / NodeJS / 3rd party libraries in renderer context (i.e. Angular).
7272

73+
## Use "web" 3rd party libraries (like angular, material, bootstrap, ...)
74+
75+
3rd party librairies used by renderer process of electron (like angular) have to be added in `devDependencies` of `package.json` to not increase the final package's size. Otherwise it will significantly increase the size of your final package... not so cool :(
76+
7377
## Browser mode
7478

7579
Maybe you only want to execute the application in the browser with hot reload? Just run `npm run ng:serve:web`.

0 commit comments

Comments
 (0)