Try disable host check for codesandbox.

This commit is contained in:
orangemug 2020-09-09 14:19:06 +01:00
parent 8b766777ac
commit 553b17822d

View file

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