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

fix: optimize the judgment on whether HTTPS has been set in options#7202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
haoqunjiang merged 2 commits intovuejs:devfrombackrunner:backrunner-patch-0619
Jul 4, 2022

Conversation

backrunner
Copy link
Contributor

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

Webpack also provides two configuration items namedhttp2 anddevServer.server, ifhttp2 is set totrue, the dev server will also start with HTTPS, and it's the same fordevServer.server is set tohttps orspdy.

The current code only judgement whetherprojectDevServerOptions.https is a truthy value, this is an inaccurate judgement.

This patch contains changes that cover more cases than the existing code, allowing users to get correct URLs after executingvue-cli-service serve.

Copy link
Member

@haoqunjianghaoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks!

@haoqunjianghaoqunjiang merged commitbddd64d intovuejs:devJul 4, 2022
@backrunner
Copy link
ContributorAuthor

@sodatea Your commit558dea2 suddenly reminded me that my fix is not perfect.devServer.server.type is not included in the judgement, I'll create another patch to cover that case.
If you have time now, you can complete this judgement first. Sorry for this fix isn't perfect.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@haoqunjianghaoqunjianghaoqunjiang approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@backrunner@haoqunjiang

[8]ページ先頭

©2009-2025 Movatter.jp