Vue-cli-plugin-electron-builder: Possibility to change renderer process file name and path

Created on 13 Aug 2018  路  2Comments  路  Source: nklayman/vue-cli-plugin-electron-builder

Hello 馃憢

Would be possible to change the renderer process file name and path, like how we can with the main by using mainProcessFile config option?

I tried to look into the source, but couldn't find a sane way to do it.

Thanks in advance!

Most helpful comment

Almost all of the renderer process config is handled by vue-cli, just like your regular build. You will have to set it through the chainWebpack option in vue.config.js. I think this will work, but I am not sure (will test later today):

// vue.config.js

module.exports = { 
  chainWebpack: (config) => {
    config.entry('app').clear().add('path to entry file')
  }
}

All 2 comments

Almost all of the renderer process config is handled by vue-cli, just like your regular build. You will have to set it through the chainWebpack option in vue.config.js. I think this will work, but I am not sure (will test later today):

// vue.config.js

module.exports = { 
  chainWebpack: (config) => {
    config.entry('app').clear().add('path to entry file')
  }
}

Thanks, that did the trick!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nklayman picture nklayman  路  3Comments

devlerone picture devlerone  路  4Comments

fridzema picture fridzema  路  4Comments

mrin9 picture mrin9  路  6Comments

iamazik picture iamazik  路  5Comments