Vue-cli-plugin-electron-builder: Question||'build' in the application package.json is not supported since 3.0

Created on 6 Jul 2019  路  5Comments  路  Source: nklayman/vue-cli-plugin-electron-builder

'build' in the application package.json is not supported since 3.0 anymore. Please move 'build' into the development package.json.
How can I setting like this:

"build": {
    "appId": "test.com",
    "win": {
      "icon": "public/windows.ico"
    }
  }

Most helpful comment

See the docs on configuring electron builder. Set your vue.config.js to this:

module.exports = {
  pluginOptions: {
    electronBuilder: {
      builderOptions: {
        appId: 'test.com',
        win: {
          icon: 'public/windows.ico'
        }
      }
    }
  }
}

All 5 comments

See the docs on configuring electron builder. Set your vue.config.js to this:

module.exports = {
  pluginOptions: {
    electronBuilder: {
      builderOptions: {
        appId: 'test.com',
        win: {
          icon: 'public/windows.ico'
        }
      }
    }
  }
}

thanks

Thanks it works !! have been wandering to change the icon for a while...

@ponahoum See the icon guide.

@nklayman Thank you so much. It's working for me.

Was this page helpful?
0 / 5 - 0 ratings