baldore / open-browser-webpack-plugin

Opens a new browser tab when Webpack loads.
119 stars 27 forks source link

is it possible to conditionally open browser #16

Open craigcosmo opened 7 years ago

craigcosmo commented 7 years ago

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 commented 7 years ago

x2 came here to post this!