@@ -20,14 +20,13 @@ module.exports = (api, options) => {
2020 'build:electron' ,
2121 {
2222 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]' ,
2524 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 .`
2928 } ,
30- async ( ) => {
29+ async args => {
3130 const buildRenderer = require ( '@vue/cli-service/lib/commands/build' ) . build
3231 const fs = require ( 'fs-extra' )
3332 const builder = require ( 'electron-builder' )
@@ -123,7 +122,8 @@ module.exports = (api, options) => {
123122 config : {
124123 ...defaultBuildConfig ,
125124 ...userBuildConfig
126- }
125+ } ,
126+ ...args
127127 } )
128128 . then ( ( ) => {
129129 // handle result
@@ -139,9 +139,9 @@ module.exports = (api, options) => {
139139 api . registerCommand (
140140 'serve:electron' ,
141141 {
142- description : 'serve app with electron-webpack ' ,
142+ description : 'serve app and launch electron' ,
143143 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 .`
145145 } ,
146146 ( ) => {
147147 const execa = require ( 'execa' )
0 commit comments