Electron + Vue – Basic Learning (2): Project packaged as an EXE desktop application

Time:2021-2-23

The project is created and started normally. The next step is to package the project. Package the test demo as an EXE desktop application, click the EXE file and run the project.

Following the above, there are three ways to create a project: git copy and direct creation. To create a project through the command line tool (CLI) electron forge provided by the electron community, it seems that there should be three ways to package the corresponding project, but in fact, the first way and the third way are the same, so their project packaging methods are the same.

There are two kinds of webpack tools for packaging electronic projects: electronic packer and electronic builder. Let’s start with electronic packer one by one.