doc-scripts
doc-scripts copied to clipboard
可以支持一下 disableHostCheck
new WebpackDevServer(complier, {
publicPath: '/',
quiet: true,
hot: true,
disableHostCheck: true // add this line
}).listen(DEFAULT_PORT, HOST, function (err) {
if (err) {
return log.error(err);
}
openBrowser("http://" + HOST + ":" + DEFAULT_PORT);
});