antfu-collective / vitesse

🏕 Opinionated Vite + Vue Starter Template
https://vitesse.netlify.app/
MIT License
8.79k stars 932 forks source link

Font inconsistency between local run and online demo #505

Closed nailuox closed 1 year ago

nailuox commented 1 year ago

Describe the bug

The font after local operation is inconsistent with the online demo, and the packaged font is the same as the online demo

local run: image image

online demo: image

package: image

Reproduction

no

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
    Memory: 2.04 GB / 15.77 GB
  Binaries:
    Node: 16.18.1 - D:\soft\nvm\nodejs\node.EXE
    Yarn: 1.22.19 - D:\soft\nvm\nodejs\yarn.CMD
    npm: 8.19.2 - D:\soft\nvm\nodejs\npm.CMD
    pnpm: 8.6.10 - D:\soft\nvm\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (115.0.1901.200)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

pnpm

Validations

kevinmarrec commented 4 months ago

I can confirm that WebfontDownload Vite plugin is not working with presetWebFonts of UnoCSS, resulting in a production build without extracted fonts.