in config/settings.yaml :webpack_dev_server: true
In one tab:
rails s -b '0.0.0.0'
In a 2nd tab:
BIND=0.0.0.0 ./node_modules/.bin/webpack-dev-server --config config/webpack.config.js --https $WEBPACK_OPTS
In your browser:
You may need to disable host checks:
diff --git a/config/webpack.config.js b/config/webpack.config.js
index b45e292..61af2c4 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -182,6 +182,7 @@ module.exports = env => {
}
config.devServer = {
+ disableHostCheck:true,
host: process.env.BIND || 'localhost',
port: devServerPort,
headers: { 'Access-Control-Allow-Origin': '*' },