Navigation Menu

Skip to content

Commit

Permalink
解决 webpack-dev-server 无法通过 ip 访问 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxlct committed Oct 28, 2016
1 parent d68827e commit 9e8df2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -4,7 +4,7 @@
"description": "boilerplate",
"main": "app/index.jsx",
"scripts": {
"dev": "./node_modules/.bin/webpack-dev-server --progress",
"dev": "./node_modules/.bin/webpack-dev-server --progress --host 0.0.0.0",
"build": "./node_modules/.bin/webpack --progress --colors --config webpack.prod.config.js",
"lint": "./node_modules/.bin/eslint app",
"clean": "rm -rf build/*",
Expand Down

1 comment on commit 9e8df2d

@long20150122
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only 0.0.0.0 and localhost can pass. but ip is error as before.
error message 'Unable to round-trip http request to upstream: dial tcp 10.103.1.30:8080: connectex: No connection could be made because the target machine actively refused it.'

Please sign in to comment.