Skip to content

Commit 1252b0b

Browse files
authored
Fix webpack config example
1 parent 29b02e0 commit 1252b0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guide/configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ module.exports = {
4949
chainWebpackRendererProcess: config => {
5050
// Chain webpack config for electron renderer process only
5151
// The following example will set IS_ELECTRON to true in your app
52-
rendererConfig.plugin('define').tap(args => {
52+
config.plugin('define').tap(args => {
5353
args[0]['IS_ELECTRON'] = true
5454
return args
5555
})
56+
// If you do not return the config property, your app may break!
57+
return config
5658
},
5759
// Use this to change the entrypoint of your app's main process
5860
mainProcessFile: 'src/myBackgroundFile.js'

0 commit comments

Comments
 (0)