How to configure alternate web browser for devServer
-
I’ve read up on webpack and tried to change the devServer open value to launch Google Chrome (not system default), however I cannot get it to work. Has anyone configured quasar.conf.js webpack to launch another browser client?
devServer: { // https: true, port: 8888, open: 'Google Chrome' // 'chrome' ... opens browser window automatically },
From webpack
https://webpack.js.org/configuration/dev-server/#devserver-open
https://github.com/webpack/webpack-dev-server/issues/753 -
Any luck on this?? I am looking for the same thing…
-
Which OS you have? On Mac it’s work.
“The browser application name is platform dependent. Don’t hard code it in reusable modules. For example, ‘Chrome’ is ‘Google Chrome’ on macOS, ‘google-chrome’ on Linux and ‘chrome’ on Windows.” Source: https://webpack.js.org/configuration/dev-server/#devserver-open
-
@devmime – Well that’s a bit embarrassing – had the wrong name … Switched it to 'Google Chrome" on my Mac OS X and sure enough – works like a champ! Thanks!
-
devServer: { https: false, port: 8080, open: 'chrome' // opens browser window automatically },
For automatically opening Google Chrome