Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit558dea2

Browse files
committed
fix: supportdevServer.server option, avoid deprecation warning
Closes#7024Fixes#7118I choose to not merge the PR because I don't want add additional waysto configure https for dev server (`--http2` command line argument,`process.env.HTTPS`, etc.)In the current implementation, `spdy` can only be configured by setting`{ devServer: server: { type: 'spdy' } }`.This is a deliberate choice, because SPDY support in Node.js 15+ isbroken anyway. I don't want bother refactoring the old code toaccommodate this broken feature.
1 parentbddd64d commit558dea2

File tree

1 file changed

+8
-1
lines changed
  • packages/@vue/cli-service/lib/commands

1 file changed

+8
-1
lines changed

‎packages/@vue/cli-service/lib/commands/serve.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,14 @@ module.exports = (api, options) => {
199199
},projectDevServerOptions,{
200200
host,
201201
port,
202-
https:useHttps,
202+
203+
server:{
204+
type:protocol,
205+
...(typeofprojectDevServerOptions.server==='object'
206+
?projectDevServerOptions.server
207+
:{})
208+
},
209+
203210
proxy:proxySettings,
204211

205212
static:{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp