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
Copy file name to clipboardExpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ With this sample, you can :
24
24
- Run your app in a production environment
25
25
- Package your app into an executable file for Linux, Windows & Mac
26
26
27
-
/!\ Angular 8.x CLI needs Node 10.9 or later to work.
27
+
/!\ Angular 8.x CLI needs Node 10.9 or later to works correctly.
28
28
29
29
## Getting Started
30
30
@@ -40,7 +40,7 @@ Install dependencies with npm :
40
40
npm install
41
41
```
42
42
43
-
There is an issue with `yarn` and `node_modules`that are only used in electron on the backend when the application is built by the packager. Please use `npm` as dependencies manager.
43
+
There is an issue with `yarn` and `node_modules` when the application is built by the packager. Please use `npm` as dependencies manager.
44
44
45
45
46
46
If you want to generate Angular components with Angular-cli , you **MUST** install `@angular/cli` in npm global context.
@@ -76,11 +76,11 @@ You can disable "Developer Tools" by commenting `win.webContents.openDevTools();
76
76
77
77
## You want to use a specific lib (like rxjs) in electron main thread ?
78
78
79
-
You can do this! Just by importing your library in npm dependencies (not devDependencies) with `npm install --save`. It will be loaded by electron during build phase and added to the final package. Then use your library by importing it in `main.ts` file. Easy no ?
79
+
YES! You can do it! Just by importing your library in npm dependencies section (not **devDependencies**) with `npm install --save`. It will be loaded by electron during build phase and added to your final package. Then use your library by importing it in `main.ts` file. Quite simple, isn't it ?
80
80
81
81
## Browser mode
82
82
83
-
Maybe you want to execute the application in the browser with hot reload ? You can do it with`npm run ng:serve:web`.
83
+
Maybe you want to execute the application in the browser with hot reload ? Just run`npm run ng:serve:web`.
84
84
**Note that you can't use Electron or NodeJS native libraries in this case.** Please check `providers/electron.service.ts` to watch how conditional import of electron/Native libraries is done.
0 commit comments