We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<template> <div> <i class="ri-home-line"></i> <i class="fas fa-home"></i> </div> </template> <script> import "remixicon/fonts/remixicon.css"; import "@fortawesome/fontawesome-free/css/all.css"; export default { name: "App", }; </script>
And I got console warning:
Failed to decode downloaded font: <URL> (index):1 Failed to decode downloaded font: http://localhost:3000/@modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 (index):1 Failed to decode downloaded font: http://localhost:3000/@modules/remixicon/fonts/remixicon.woff2?t=1590207869815 (index):1 Failed to decode downloaded font: http://localhost:3000/@modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff (index):1 Failed to decode downloaded font: http://localhost:3000/@modules/remixicon/fonts/remixicon.woff?t=1590207869815 (index):1 Failed to decode downloaded font: http://localhost:3000/@modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf (index):1 Failed to decode downloaded font: http://localhost:3000/@modules/remixicon/fonts/remixicon.ttf?t=1590207869815 (index):1 OTS parsing error: Failed to convert WOFF 2.0 font to SFNT (index):1 OTS parsing error: Size of decompressed WOFF 2.0 is less than compressed size 2(index):1 OTS parsing error: incorrect file size in WOFF header 2(index):1 OTS parsing error: incorrect entrySelector for table directory
https://github.com/varHarrie/vite-font-issue
vite
The text was updated successfully, but these errors were encountered:
fix(dev): read file as buffer
2316ed4
fix vitejs#395
fix(dev): read file as buffer (#398)
5ee1d15
fix #395
Successfully merging a pull request may close this issue.
Describe the bug
And I got console warning:
Reproduction
https://github.com/varHarrie/vite-font-issue
System Info
vite
version: 0.20.8The text was updated successfully, but these errors were encountered: