File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/@vue/cli-service/lib/commands Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,17 +132,17 @@ module.exports = (api, options) => {
132
132
} , projectDevServerOptions , {
133
133
https : useHttps ,
134
134
proxy : proxySettings ,
135
- before ( app ) {
135
+ before ( app , server ) {
136
136
// launch editor support.
137
137
// this works with vue-devtools & @vue/cli-overlay
138
138
app . use ( '/__open-in-editor' , launchEditorMiddleware ( ( ) => console . log (
139
139
`To specify an editor, sepcify the EDITOR env variable or ` +
140
140
`add "editor" field to your Vue project config.\n`
141
141
) ) )
142
142
// allow other plugins to register middlewares, e.g. PWA
143
- api . service . devServerConfigFns . forEach ( fn => fn ( app ) )
143
+ api . service . devServerConfigFns . forEach ( fn => fn ( app , server ) )
144
144
// apply in project middlewares
145
- projectDevServerOptions . before && projectDevServerOptions . before ( app )
145
+ projectDevServerOptions . before && projectDevServerOptions . before ( app , server )
146
146
}
147
147
} ) )
148
148
You can’t perform that action at this time.
0 commit comments