dashkan / ng-electron-devkit

Angular Webpack Build Facade for Electron
MIT License
12 stars 3 forks source link

ng serve #3

Closed dottodot closed 5 years ago

dottodot commented 5 years ago

Just wondering is there a way to use this along with ng serve i.e ao you can live build in electron?

dashkan commented 5 years ago

You need to pass --serve to your main electron process. Take a look at the provided sample application.

You also need to update your angular.json to support serving to electron. Take a look at the sample angular.json.

Keep in mind that when you serve you have to use the angular dev server, not the local file system.

I'll try to update the documentation over the weekend.