luwu 7 webpack设置端口 - nuanxin1111/react GitHub Wiki
关于webpack设置端口的探讨见github issue 80和源码设置
如果需要其他参数的信息可以查看webpack-dev-server.js文件
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --host 0.0.0.0 --port 8080 --devtool eval --progress --colors --hot --content-base build",
"deploy": "NODE_ENV=production webpack -p --config webpack.production.config.js",
"test": "echo \"Error: no test specified\" && exit 1"
}
bundle: [
'webpack/hot/dev-server',
'webpack-dev-server/client?http://0.0.0.0:8080',
path.resolve(__dirname, 'app/app.js'),
]
},