From b260621afffdb79efcea534ab070d32f7efaf931 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 6 May 2021 21:51:43 -0600 Subject: [PATCH] Disable host checking on the webpack dev server This is useful when you're doing cross-browser testing on a service which demands you use "localhost.com" for reasons. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cb629f17b7..2a92db9532 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "dist": "scripts/package.sh", "start": "concurrently --kill-others-on-fail --prefix \"{time} [{name}]\" -n reskindex,reskindex-react,res,element-js \"yarn reskindex:watch\" \"yarn reskindex:watch-react\" \"yarn start:res\" \"yarn start:js\"", "start:res": "yarn build:jitsi && node scripts/copy-res.js -w", - "start:js": "webpack-dev-server --host=0.0.0.0 --output-filename=bundles/_dev_/[name].js --output-chunk-filename=bundles/_dev_/[name].js -w --progress --mode development", + "start:js": "webpack-dev-server --host=0.0.0.0 --output-filename=bundles/_dev_/[name].js --output-chunk-filename=bundles/_dev_/[name].js -w --progress --mode development --disable-host-check", "lint": "yarn lint:types && yarn lint:js && yarn lint:style", "lint:js": "eslint src", "lint:types": "tsc --noEmit --jsx react",