solved timeout error via fetch response

This commit is contained in:
Robert Nasarek 2022-08-31 11:03:41 +02:00
parent ba9d9e6abb
commit 1d68336a06
9 changed files with 246 additions and 110 deletions

View file

@ -42,11 +42,14 @@ module.exports = {
],
devtool: 'cheap-source-map',
devServer: {
static: path.resolve(__dirname, 'dist'),
// Tell the server where to serve the content from.
static: {
directory: path.resolve(__dirname, 'dist'),
},
onBeforeSetupMiddleware() {
spawn(
'electron',
['.'],
['--trace-warnings .'],
{ shell: true, env: process.env, stdio: 'inherit' }
)
.on('close', code => process.exit(0))