From 634726c5f23736f478a9291cc58227601f103291 Mon Sep 17 00:00:00 2001 From: wangyupeng Date: Thu, 23 May 2019 17:29:43 +0800 Subject: [PATCH] U-update --- vue.config.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/vue.config.js b/vue.config.js index 22b83d5..f1e812b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,16 +4,6 @@ module.exports = { pluginOptions: { electronBuilder: { builderOptions: { - chainWebpackMainProcess: config => { - config.target('electron-renderer') - // Chain webpack config for electron main process only - }, - chainWebpackRendererProcess: config => { - // Chain webpack config for electron renderer process only - // The following example will set IS_ELECTRON to true in your app - config.target('electron-renderer') - }, - extraFiles: [ { "from": "resources/${os}", @@ -21,7 +11,19 @@ module.exports = { "filter": ["**/*"] } ] - } + }, + + chainWebpackMainProcess: config => { + config.target('electron-renderer') + // Chain webpack config for electron main process only + }, + chainWebpackRendererProcess: config => { + // Chain webpack config for electron renderer process only + // The following example will set IS_ELECTRON to true in your app + config.target('electron-renderer') + }, + + } } }