Hey all. Simple question, I am using Ionic 4. When I run ionic serve it launches in Google Chrome. I want to change this so it launches in Google Chrome Canary. I want to do this in package.json, like I could in Ionic 3 so I don’t have to type --browser etc.
How do I do this in Ionic 4???
I have this:
scripts": {
“ng”: “ng”,
“start”: “ng serve”,
“build”: “ng build”,
“test”: “ng test”,
“lint”: “ng lint”,
“e2e”: “ng e2e”
}
gokujy
September 3, 2019, 5:30am
2
Here is the documentation for Ionic serve, I tried in my project but it’s not working: Ionic serve
This works:
ionic serve --browser=‘google chrome canary’
I was asking how to make this the default when running ionic serve. I ended up adding:
“serve”: “ionic serve --browser=‘google chrome canary’”
to the scripts object in package.json. Then when I run npm run serve I get the app served in Chrome Canary. I guess that will have to do.
1 Like
gokujy
September 3, 2019, 6:09am
4
Set default browser from os not ionic, like when ever you open anything html page it will open in chrome