How to use download with Webpack in Electron?

I'm trying to integrate Electron into Akveo ng2-admin , and I already had the webpack configuration files for the Angular application as well as the Electron platform, you can really see the integration here .

What am I trying to get now in order to get reboot capabilities. Scripts will now pack an electronic application as an assembly.

My idea is to have several scripts that can be covered by scripts npm, for example:

  • Live reboot of Angular application inside Electron platform.
  • Live reboot of the complete solution with Electron reboot.

These two will work well, I think.

Thank!

+4
source share
1 answer

You can take a look at my integration of Angular 2 with Webpack and Electron here . The project is based on the Angular 2 tutorial. When using Electron in development mode ( npm run start.desktop), webpack loads the code.

I also created a quickstart project: https://github.com/osechet/angular-webpack-quickstart

+1
source

Source: https://habr.com/ru/post/1656086/


All Articles