How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible?

I am new to the whole nodejs/reactjs world so apologies if my question sounds silly. So I am playing around with reactabular.js. Whenever I do a npm start it always runs on localhost:8080. How do I change it to run on 0.0.0.0:8080 to make it publicly accessible? I have been trying to read the source … Read more

Cannot find module ‘webpack/bin/config-yargs’

Getting error when running webpack-dev-server –config config/webpack.dev.js –progress –profile –watch –content-base src/. Here is the error log: module.js:442 throw err; ^ Error: Cannot find module ‘webpack/bin/config-yargs’ at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) 31 Answers … Read more

I am getting an “Invalid Host header” message when connecting to webpack-dev-server remotely

I am using as an environment, a Cloud9.io ubuntu VM Online IDE and I have reduced by troubleshooting this error to just running the app with Webpack dev server. I launch it with: webpack-dev-server -d –watch –history-api-fallback –host $IP –port $PORT $IP is a variable that has the host address $PORT has the port number. … Read more