open-browser-webpack-plugin icon indicating copy to clipboard operation
open-browser-webpack-plugin copied to clipboard

is it possible to conditionally open browser

Open applemate opened this issue 8 years ago • 1 comments

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?

applemate avatar Jan 14 '17 16:01 applemate

x2 came here to post this!

jewbetcha avatar Aug 07 '17 18:08 jewbetcha