Skip to content

Possibility to change renderer process file name and path #44

Closed
@brunogaspar

Description

@brunogaspar

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!

Activity

nklayman

nklayman commented on Aug 13, 2018

@nklayman
Owner

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')
  }
}
brunogaspar

brunogaspar commented on Aug 13, 2018

@brunogaspar
Author

Thanks, that did the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @brunogaspar@nklayman

        Issue actions

          Possibility to change renderer process file name and path · Issue #44 · nklayman/vue-cli-plugin-electron-builder