This is a builder for the Angular CLI that allows you to target an Electron environment, giving you access to all functions available to Electron such as file system access, which currently is not supported in the Angular CLI.
For example, you can do imports such as:
It is important to note, this is not schematics or anything that will help scaffold an Electron application for you. This is simply an extension to the Angular CLI build step to allow your Angular app to have full access to Electron’s features without any awkward workarounds like message passing.
The setup process is now incredibly simple. First install the package:
Next, we need to update
angular.json to use the
electron-builder in two places:
Your app should now able to take advantage of all the wonderful features Electron can offer us!
You can find a very basic example project for an example of how to get up and running!
Copyright © 2019 Angular Guru