Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/@vue/cli-service/lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ module.exports = (api, options) => {
: `${protocol}://${rawPublicUrl}`
: null

const openOption = projectDevServerOptions.open
// always disable dev-server open option and handle it ourself
projectDevServerOptions.open = false

const urls = prepareURLs(
protocol,
host,
Expand Down Expand Up @@ -246,7 +250,7 @@ module.exports = (api, options) => {
}
console.log()

if (args.open || projectDevServerOptions.open) {
if (args.open || openOption) {
const pageUri = (projectDevServerOptions.openPage && typeof projectDevServerOptions.openPage === 'string')
? projectDevServerOptions.openPage
: ''
Expand Down