File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ module.exports = (api, opts) => {
4
4
'source-map-support' : '^0.5.4'
5
5
}
6
6
let devDependencies = {
7
- 'electron-builder' : '^20.8.1 ' ,
8
- 'electron-webpack' : '^1.13.0 ' ,
9
- electron : '^1.8.4 '
7
+ 'electron-builder' : '^20.13.4 ' ,
8
+ 'electron-webpack' : '^2.1.1 ' ,
9
+ electron : '^2.0.1 '
10
10
}
11
- if ( opts . useTypescript ) devDependencies [ 'electron-webpack-ts' ] = '^1.4.0 '
11
+ if ( opts . useTypescript ) devDependencies [ 'electron-webpack-ts' ] = '^2.0.2 '
12
12
api . extendPackage ( {
13
13
scripts : {
14
14
'build:electron' : 'vue-cli-service build:electron' ,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ module.exports = (api, options) => {
11
11
`See https://github.com/nklayman/vue-cli-plugin-electron-builder for more details.`
12
12
} ,
13
13
( args , rawArgs ) => {
14
- api . setMode ( 'production' )
15
14
setWebpackOptions ( api , options )
16
15
const execa = require ( 'execa' )
17
16
const electronWebpackPath =
@@ -67,7 +66,6 @@ module.exports = (api, options) => {
67
66
details : `See https://github.com/nklayman/vue-cli-plugin-electron-builder for more details.`
68
67
} ,
69
68
( ) => {
70
- api . setMode ( 'dev' )
71
69
setWebpackOptions ( api , options )
72
70
const execa = require ( 'execa' )
73
71
const electronWebpackPath =
@@ -132,3 +130,7 @@ function setWebpackOptions (api, options) {
132
130
'module.exports=' + stringConfig
133
131
)
134
132
}
133
+ module . exports . defaultModes = {
134
+ 'build:electron' : 'production' ,
135
+ 'serve:electron' : 'dev'
136
+ }
You can’t perform that action at this time.
0 commit comments