m0dch3n / vue-cli-plugin-cordova

Vue Cli 3 Cordova Plugin
MIT License
417 stars 63 forks source link

Can't get non-default browser to work in devServer #93

Closed daviesdoclc closed 4 years ago

daviesdoclc commented 4 years ago

I'm trying to get cordova-serve-browser to open the non-default browser. I want "Google Chrome". I've tried adding

"devServer": {
    "open": "Google Chrome"
  }

per webpack instructions, but it's not working. Is there an alternative for vue-cli-plugin-cordova?

m0dch3n commented 4 years ago

After 2 minutes of research, I found this

https://github.com/vuejs/vue-cli/issues/2141

So maybe it's not possible...

Does

"devServer": {
    "open": "Google Chrome"
  }

work, when you run npm run serve ?

daviesdoclc commented 4 years ago

Good point. No, it's not working there either. Ok, sorry. I'll close.

daviesdoclc commented 4 years ago

I found out that vue-cli requires an environment variable called BROWSER. https://github.com/vuejs/vue-cli/issues/2141#issuecomment-559143578