doc-scripts icon indicating copy to clipboard operation
doc-scripts copied to clipboard

可以支持一下 disableHostCheck

Open uncledb opened this issue 5 years ago • 0 comments

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);
      });

uncledb avatar Aug 31 '20 08:08 uncledb