Electron pack vue?

clipboard.png

bulidelectron index.html
package.json
"abc": "npm run build && electron build/electron.js",


clipboard.png

I copied an electron.js and a packpage.json, in the dist folder
change the path of index.html in electron.js to the path of index in the current folder, and add
"main": "electron.js",
"scripts": {

in
packpage.json
"start": "electron ."

}
this is the only way to use it. Can I use an electron.js and a package.json

?

electron can run
package.json files are required
main fields must specify a js file


such a configuration uses electron packaging: vue packaged dist. Can exe files be routed directly when they are opened?

Menu