chore(webpack-dev-server): Updates webpack-dev-server to latest.

This commit is contained in:
damencho
2024-11-22 11:45:53 -06:00
committed by Дамян Минков
parent a4a1619dc2
commit b303693198
3 changed files with 723 additions and 337 deletions

1049
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -190,8 +190,8 @@
"webdriverio": "9.2.14",
"webpack": "5.95.0",
"webpack-bundle-analyzer": "4.4.2",
"webpack-cli": "4.9.0",
"webpack-dev-server": "4.15.2"
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.1.0"
},
"overrides": {
"@xmldom/xmldom": "0.8.7"

View File

@@ -240,8 +240,9 @@ function getDevServerConfig() {
},
host: '127.0.0.1',
hot: true,
proxy: {
'/': {
proxy: [
{
context: [ '/' ],
bypass: devServerProxyBypass,
secure: false,
target: devServerProxyTarget,
@@ -249,7 +250,7 @@ function getDevServerConfig() {
'Host': new URL(devServerProxyTarget).host
}
}
},
],
server: process.env.CODESPACES ? 'http' : 'https',
static: {
directory: process.cwd()