We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 185ae6d commit 3894a4aCopy full SHA for 3894a4a
packages/@vue/cli-service/lib/commands/serve.js
@@ -42,12 +42,16 @@ module.exports = (api, options) => {
42
const prepareProxy = require('../util/prepareProxy')
43
const launchEditorMiddleware = require('launch-editor-middleware')
44
45
- // load user devServer options
46
- const projectDevServerOptions = options.devServer || {}
47
-
48
// resolve webpack config
49
const webpackConfig = api.resolveWebpackConfig()
50
+ // load user devServer options with higher priority than devServer
+ // in webpck config
+ const projectDevServerOptions = Object.assign(
51
+ webpackConfig.devServer || {},
52
+ options.devServer
53
+ )
54
+
55
// expose advanced stats
56
if (args.dashboard) {
57
const DashboardPlugin = require('../webpack/DashboardPlugin')
0 commit comments