We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b02e0 commit 1252b0bCopy full SHA for 1252b0b
docs/guide/configuration.md
@@ -49,10 +49,12 @@ module.exports = {
49
chainWebpackRendererProcess: config => {
50
// Chain webpack config for electron renderer process only
51
// The following example will set IS_ELECTRON to true in your app
52
- rendererConfig.plugin('define').tap(args => {
+ config.plugin('define').tap(args => {
53
args[0]['IS_ELECTRON'] = true
54
return args
55
})
56
+ // If you do not return the config property, your app may break!
57
+ return config
58
},
59
// Use this to change the entrypoint of your app's main process
60
mainProcessFile: 'src/myBackgroundFile.js'
0 commit comments