Weird bug webpack 4 and host check


I’m trying to setup react + webpack 4 on cloud9 my builds are successful but when i go to the application it says that there’s no workspace running.

So i decided to disable host check
devServer: {
compress: true,
public: ‘

with also adding this script when building
“scripts”: {
“start”: “webpack-dev-server --host $IP --port $PORT --hot --inline”

Opening the application gives me this


In my case of vue + webpack, build works ok, but webpack-dev-server does not show working page.

my solution is use cross-env

  1. npm i --save-dev cross-env

  2. change run script in package.json "start" : "webpack-dev-server ...."
    to "start" : "cross-env NODE_ENV=production webpack-dev-server ...."

  3. preview works!


Not working for me… :thinking: