![]() Your built files are in the /dist folder.īuild the app with Angular aot. Maybe you only want to execute the application in the browser with hot reload? Just run npm run ng:serve:web. You may encounter some difficulties with ng-add because this project doesn't use the defaults example you can find here how to install Angular-Material with ng-add. Please check providers/ to watch how conditional import of libraries has to be done when using NodeJS / 3rd party libraries in renderer context (i.e. ![]() )ģrd party libraries used in electron's renderer process (like angular) have to be added in dependencies of package.json. \ Use "web" 3rd party libraries (like angular, material, bootstrap. To make this work, you have to import your dependencies the right way. This sample project runs in both modes (web and electron). Project structure FolderĮlectron renderer process folder (Web / Angular)ģrd party libraries used in electron's main process (like an ORM) have to be added in dependencies of app/package.json. You can disable "Developer Tools" by commenting () in app/main.ts. The Angular component contains an example of Electron and NodeJS native lib import. In this sample, the app runs with a simple Angular App ( and an Electron window. The application code is managed by app/main.ts. Voila! You can use your Angular + Electron app in a local development environment with hot reload!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |