Merge pull request #728 from orangemug/fix/disable-host-check

Disable host check for codesandbox
This commit is contained in:
Orange Mug 2020-09-09 15:06:54 +01:00 committed by GitHub
commit a572bc02a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ module.exports = {
// See <https://webpack.js.org/configuration/watch/#watchoptions-poll> for details
poll: (!!process.env.WEBPACK_DEV_SERVER_POLLING ? true : false),
watch: false
}
},
},
plugins: [
new webpack.NoEmitOnErrorsPlugin(),

View file

@ -11,6 +11,7 @@
"test-watch": "cross-env NODE_ENV=test wdio config/wdio.conf.js --watch",
"start": "webpack-dev-server --progress --profile --colors --config config/webpack.config.js",
"start-prod": "webpack-dev-server --progress --profile --colors --config config/webpack.production.config.js",
"start-sandbox": "webpack-dev-server --disable-host-check --host 0.0.0.0 --progress --profile --colors --config config/webpack.production.config.js",
"lint-js": "eslint --ext js --ext jsx src test",
"lint-css": "stylelint \"src/styles/*.scss\"",
"lint": "npm run lint-js && npm run lint-css",

View file

@ -1,5 +1,5 @@
{
"container": {
"startScript": "start-prod"
"startScript": "start-sandbox"
}
}