Skip to content

browser opens automatically on launching devServer#63

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

browser opens automatically on launching devServer#63
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Dec 1, 2017

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

@naveenkumarsangi
Copy link
Copy Markdown
Member

naveenkumarsangi commented Dec 1, 2017

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

@naveenkumarsangi
Copy link
Copy Markdown
Member

naveenkumarsangi 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

@naveenkumarsangi
Copy link
Copy Markdown
Member

Closing in favour of #65.

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