I want to disable the error overlay in development but it seems that configuration overlay: false
is ignored with [email protected]
Reproduction
serverConfig
here configuration set with overlay: false
:
{
disableHostCheck: true,
compress: true,
clientLogLevel: 'none',
contentBase: '/home/dka/workspace/github.com/pass-culture/pass-culture-app-native/public',
contentBasePublicPath: '/',
watchContentBase: true,
hot: true,
transportMode: 'ws',
injectClient: false,
sockHost: undefined,
sockPath: undefined,
sockPort: undefined,
publicPath: '',
quiet: true,
watchOptions: {
ignored: /^(?!/home/dka/workspace/github.com/pass-culture/pass-culture-app-native/src/).+/node_modules//g
},
https: false,
host: '0.0.0.0',
overlay: false,
historyApiFallback: { disableDotRule: true, index: '/' },
public: '192.168.1.102',
proxy: {
'/native': {
target: 'https://backend.testing.passculture.team',
changeOrigin: true
},
'/saml': {
target: 'https://backend.testing.passculture.team',
changeOrigin: true
}
},
before: [Function: before],
after: [Function: after]
}
Expected Behavior
It should disable the overlay as explained here and here
Seems related to https://github.com/electron-userland/electron-forge/issues/2413 / https://github.com/webpack/webpack-dev-server/issues/4111