@@ -20,14 +20,13 @@ module.exports = (api, options) => {
20
20
'build:electron' ,
21
21
{
22
22
description : 'build app with electron-builder' ,
23
- usage :
24
- 'vue-cli-service build:electron [electron-builder options] --webpack [electron-webpack options]' ,
23
+ usage : 'vue-cli-service build:electron [electron-builder options]' ,
25
24
details :
26
- `All electron-builder and electron-webpack command line options are supported.\n` +
27
- `Args before --webpack will be sent to electron-builder, after --webpack will be sent to electron-webpack \n` +
28
- `See https://github.com/nklayman/vue-cli-plugin-electron-builder for more details.`
25
+ `All electron-builder command line options are supported.\n` +
26
+ `See https://www. electron.build/cli for cli options \n` +
27
+ `See https://github.com/nklayman/vue-cli-plugin-electron-builder for more details about this plugin .`
29
28
} ,
30
- async ( ) => {
29
+ async args => {
31
30
const buildRenderer = require ( '@vue/cli-service/lib/commands/build' ) . build
32
31
const fs = require ( 'fs-extra' )
33
32
const builder = require ( 'electron-builder' )
@@ -123,7 +122,8 @@ module.exports = (api, options) => {
123
122
config : {
124
123
...defaultBuildConfig ,
125
124
...userBuildConfig
126
- }
125
+ } ,
126
+ ...args
127
127
} )
128
128
. then ( ( ) => {
129
129
// handle result
@@ -139,9 +139,9 @@ module.exports = (api, options) => {
139
139
api . registerCommand (
140
140
'serve:electron' ,
141
141
{
142
- description : 'serve app with electron-webpack ' ,
142
+ description : 'serve app and launch electron' ,
143
143
usage : 'vue-cli-service serve:electron' ,
144
- details : `See https://github.com/nklayman/vue-cli-plugin-electron-builder for more details.`
144
+ details : `See https://github.com/nklayman/vue-cli-plugin-electron-builder for more details about this plugin .`
145
145
} ,
146
146
( ) => {
147
147
const execa = require ( 'execa' )
0 commit comments