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

Broken url to font files in @layer #249

Open
cawa-93 opened this issue Oct 21, 2021 · 0 comments
Open

Broken url to font files in @layer #249

cawa-93 opened this issue Oct 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@cawa-93
Copy link

cawa-93 commented Oct 21, 2021

Describe the bug
The problem concerns the includes of fonts in the @layer. After compilation, the path and name of the font files change, but it is not updated in the source code.

Minimal Reproductions

  1. Clone https://github.com/cawa-93/windicss-fonts-issue
  2. npm i && npm run build
  3. Note the dist directory: It contains the font file like /SegMDL2.da0f727e.ttf but in index.b29f9d83.css it still as Segoe fonts v1710/SegMDL2.ttf. Because of this, the font file cannot be found and linked in the production.

Versions

  • vite-plugin-windicss: 1.4.12
  • vite:^2.6.4
@cawa-93 cawa-93 added the bug Something isn't working label Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant