fix/ jslib in main process error

This commit is contained in:
Maxime GRIS
2018-08-22 10:25:26 +02:00
parent d8818c18c0
commit ef33f5ed16
3 changed files with 7 additions and 7 deletions

View File

@@ -73,6 +73,10 @@ You can desactivate "Developer Tools" by commenting `win.webContents.openDevTool
**Your application is optimised. Only /dist folder and node dependencies are included in the executable.**
## You want to use a specific lib (like rxjs) in electron main thread ?
You can to 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 librairy by importing it in `main.ts` file. Easy no ?
## Browser mode
Maybe you want to execute the application in the browser with hot reload ? You can do it with `npm run ng:serve:web`.