tr1s / tris-webpack-boilerplate

A Webpack boilerplate for static websites that has all the necessary modern tools and optimizations built-in. Score a perfect 10/10 on performance.
https://twbp.tris.codes/
MIT License
1.02k stars 97 forks source link

Can't open localhost on mobile through IP address #30

Closed szymonhernik closed 4 years ago

szymonhernik commented 4 years ago

Hi, I'm trying to open my running server on my mobile. On mobile, in a browser, I'm writing in a following way: 192.168.178.11:8080. The website on mobile doesn't open at all—the server is running all the time. Haven't had problems with this task before when using other webpacks. Thanks!

shyamlohar commented 4 years ago

For now you can do webpack-dev-server --open --config webpack.dev.js --allowedhosts *insert your host here*