package.json
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 自己的ip",
"start": "npm run dev",
"build": "node build/build.js"
},
config/index.js
host: "0.0.0.0", // can be overwritten by process.env.HOST