dev.startUrl
- Type:
boolean | string | string[] | undefined - Default:
undefined
dev.startUrl is used to set the URL of the page that automatically opens in the browser when Dev Server starts.
By default, no page will be opened.
You can set it to the following values:
Port placeholder
Since the port number may change, you can use the <port> placeholder to refer to the current port number, and Modern.js will automatically replace the placeholder with the actual listening port number.
Open the specified browser
On MacOS, you can open the specified browser when Dev Server starts, by set environment variable BROWSER, support values:
- Google Chrome Canary
- Google Chrome Dev
- Google Chrome Beta
- Google Chrome
- Microsoft Edge
- Brave Browser
- Vivaldi
- Chromium