5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vagrant+webpack-dev-serverでプライベートIPに接続できない時の対処

Posted at

概要

Vagrant+webpack-dev-server環境でVagrantfileに記述したプライベートIPを叩いても接続できずハマった。

対応

webpack.config.jsに下記の記述を追記すればOK。

devServer: {
    contentBase: __dirname + '/public',
    host: "0.0.0.0"
}

参考

Can't access webpack-dev-server :8080 from Vagrant

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?