If I run webpack-dev-server it works well and webpack.config.js as below :
devServer: {
contentBase: "src/client",
host: '0.0.0.0',
port : 3000,
colors: true,
progress: true,
inline: true,
hot : true,
devtool:eval
}
If I use gulpfile.babel.js to config webpack-dev-server it doesn't work! And gulpfile.babel.js as below:
new WebpackDevServer (webpack (myConfig), {
contentBase: "src/client",
hot : true,
progress: true,
inline: true,
devtool: eval,
stats: {
colors: true
}
}).listen (3000, '0.0.0.0', function (err) {
if (err) throw new gutil.PluginError ('webpack-dev-server', err);
gutil.log ("[webpack-dev-server]", "0.0.0.0")
})
How can I solve it ?
Thanks for your help!
鎴戜篃閬囧埌浜嗭紝鍚屾牱鐨勯棶棰橈紝鐪嬪埌浣犲叧闂簡闂锛屾兂鐭ラ亾浣犳槸濡備綍瑙e喅鐨勫晩