I am trying to set webpack host to 0.0.0.0 but running into trouble.
The wepack.config.watch.js is instructing to modify webpack.config.js directly.
Would anyone be able to tell me if it’s to this part of the webpack.config.js:
module.exports = merge.smartStrategy({
‘module.loaders’: ‘replace’,
})(webpackConfig, desire(${__dirname}/webpack.config.preset
));
That I need to add:
devServer: 0.0.0.0
Also when I add:
“start”: “webpack-dev-server --host 0.0.0.0 --hide-modules --watch --config resources/assets/build/webpack.config.js”,
I get code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/Users/imac/Desktop/WordPress/wordpress-nginx-docker-compose-master/src/web/app/themes/cTheme/node_modules/webpack-dev-server/bin/webpack-dev-server.js’
]
Would someone please be able to help me get this to work?
When I do a normal yarn start I cannot access localhost:3000 due to an SSL error which is why I need to set the --host to 0.0.0.0 but I cannot configure it properly!