chore: upgrade webpack, fix error

This commit is contained in:
kyranjamie
2021-11-08 12:08:15 +01:00
committed by kyranjamie
parent d29204dc7a
commit 6385d0452b
5 changed files with 71 additions and 626 deletions

View File

@@ -49,9 +49,7 @@ const server = new WebpackDevServer(
static: {
directory: path.join(__dirname, '../build'),
},
headers: {
'Access-Control-Allow-Origin': '*',
},
headers: { 'Access-Control-Allow-Origin': '*' },
allowedHosts: 'all',
devMiddleware: {
publicPath: `http://localhost:${process.env.PORT}`,