Skip to content

Commit

Permalink
misc/ upgrade to Electron 12.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegris committed Mar 19, 2021
1 parent b8230c9 commit d2f9fc2
Show file tree
Hide file tree
Showing 3 changed files with 1,093 additions and 354 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,14 @@ The application code is managed by `main.ts`. In this sample, the app runs with
The Angular component contains an example of Electron and NodeJS native lib import.
You can disable "Developer Tools" by commenting `win.webContents.openDevTools();` in `main.ts`.

## Use Electron / NodeJS / 3rd party libraries
## Use Electron / NodeJS libraries

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).

## Use "web" 3rd party libraries (like angular, material, bootstrap, ...)

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 :(

## Browser mode

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

0 comments on commit d2f9fc2

Please sign in to comment.