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

Does't coped fonts in build --watch mode #3271

Closed
6 tasks done
cawa-93 opened this issue May 5, 2021 · 1 comment
Closed
6 tasks done

Does't coped fonts in build --watch mode #3271

cawa-93 opened this issue May 5, 2021 · 1 comment

Comments

@cawa-93
Copy link
Contributor

cawa-93 commented May 5, 2021

Describe the bug

In the build --watch mode, font files are added to assets only during the first build. When rebuilding after changes, font files are deleted and not added back.

Reproduction

  1. Clone this repo: https://github.com/cawa-93/vite-assets-issue/
  2. Run npm ci
  3. Run npm run watch
  4. Check dist folder after first build. It should contain font files.
  5. Make any changes in styles.css to trigger rebuild. Check dist folder agine.

System Info

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

  System:
    OS: Windows 10 10.0.19042
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 4.68 GB / 15.42 GB
  Binaries:
    Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.10.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.423.0), Chromium (90.0.818.51)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    vite: ^2.2.4 => 2.2.4

Used package manager: npm

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.
@cawa-93
Copy link
Contributor Author

cawa-93 commented May 5, 2021

This issue should be resolved by #3145

@antfu antfu closed this as completed in 9484c0f May 23, 2021
@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