open-browser-webpack-plugin
open-browser-webpack-plugin copied to clipboard
is it possible to conditionally open browser
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?
x2 came here to post this!