fix(cli-service): avoid opening browser twice

fixes #4079

(cherry picked from commit 47d56e998d)
This commit is contained in:
Sanapoint 顼轩
2019-05-30 17:01:27 +08:00
committed by Haoqun Jiang
parent 9fe3448788
commit 79e4ba4fb3

View File

@@ -164,7 +164,9 @@ module.exports = (api, options) => {
api.service.devServerConfigFns.forEach(fn => fn(app, server))
// apply in project middlewares
projectDevServerOptions.before && projectDevServerOptions.before(app, server)
}
},
// avoid opening browser
open: false
}))
;['SIGINT', 'SIGTERM'].forEach(signal => {