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

browser opens automatically on launching devServer #63

Closed
wants to merge 1 commit into from
Closed

browser opens automatically on launching devServer #63

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 1, 2017

Browser automatically opens to localhost/8080 when devServer is launched using npm run dev.

@nkprince007
Copy link
Member

nkprince007 commented Dec 1, 2017

Thanks for your contribution @ScareCROW21. But please exclude npm-debug.log file from the commit.

@nkprince007
Copy link
Member

nkprince007 commented Dec 1, 2017

Also, please use the configuration file, https://github.com/NITDgpOS/PiZilla/blob/master/webpack.config.babel.js#L5-L8 for setting up openPage command and not --open CLI command. Because, it opens up webpack-dev-server instead of the actual express backend. So, please combine the usage of openPage with http://localhost:8000 instead.

Reference: https://webpack.js.org/configuration/dev-server/#devserver-openpage

@nkprince007
Copy link
Member

Closing in favour of #65.

@nkprince007 nkprince007 closed this Dec 2, 2017
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

Successfully merging this pull request may close these issues.

2 participants