Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

is it possible to conditionally open browser #16

Open
applemate opened this issue Jan 14, 2017 · 1 comment
Open

is it possible to conditionally open browser #16

applemate opened this issue Jan 14, 2017 · 1 comment

Comments

@applemate
Copy link

My dev command is like this

"dev": "NODE_ENV=development nodemon --watch webpack.config.babel.js ./node_modules/.bin/webpack-dev-server",

So when I do npm run dev, webpack dev server will start and if there is nothing wrong, the browser will open.

Only problem that, When I make change in wepack.config file, nodemon will restart server and another browser window will open. Why would I want a second browser window? Is there way to let this plugin know that there is already one browser window opened, no need to open another one?

@jewbetcha
Copy link

x2 came here to post this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants