Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite preview responses with initial html although html has been rebuilt #3487

Closed
6 tasks done
Sociosarbis opened this issue May 20, 2021 · 0 comments · Fixed by #3488
Closed
6 tasks done

vite preview responses with initial html although html has been rebuilt #3487

Sociosarbis opened this issue May 20, 2021 · 0 comments · Fixed by #3488

Comments

@Sociosarbis
Copy link
Contributor

Describe the bug

vite preview responses with initial html (latest one is expected) although html has been rebuilt.

dev option for sirv should set to true.

I will make a PR for this.

The reason for

Reproduction

  1. yarn vite build (with build.watch)
  2. yarn vite serve
  3. change some codes in your project to make rebuild automatically

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

  System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 613.61 MB / 7.90 GB
  Binaries:
    Node: 12.14.0 - D:\nodejs\node.EXE
    Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.13.4 - D:\nodejs\npm.CMD
  Browsers:
    Chrome: 90.0.4430.212
    Edge: Spartan (44.18362.449.0)
    Internet Explorer: 11.0.18362.1
  npmPackages:
    @vitejs/plugin-vue: ^1.1.5 => 1.2.1
    vite: ^2.3.3 => 2.3.3

Used package manager: yarn

Before submitting the issue, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Provide a description in this issue that describes the bug.
  • Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
Sociosarbis pushed a commit to Sociosarbis/vite that referenced this issue May 20, 2021
antfu pushed a commit that referenced this issue May 23, 2021
…3488)

Co-authored-by: fengjianlin <fengjianlin@moyi365.com>
ygj6 pushed a commit to ygj6/vite that referenced this issue Jun 1, 2021
…ult (vitejs#3488)

Co-authored-by: fengjianlin <fengjianlin@moyi365.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant