Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以支持一下 disableHostCheck #10

Open
uncledb opened this issue Aug 31, 2020 · 0 comments
Open

可以支持一下 disableHostCheck #10

uncledb opened this issue Aug 31, 2020 · 0 comments

Comments

@uncledb
Copy link

uncledb commented Aug 31, 2020

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);
      });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant