vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.1k stars 6.14k forks source link

Load a external font failed the server response is incorrect #11755

Closed issue-up[bot] closed 1 year ago

issue-up[bot] commented 1 year ago
   Forwarded from downstream issue: - https://github.com/nuxt/nuxt.js/issues/15765 by @yyyanghj

### Environment - Operating System: `Darwin` - Node Version: `v18.12.1` - Nuxt Version: `3.0.0` - Nitro Version: `1.0.0` - Package Manager: `pnpm@7.17.0` - Builder: `vite` - User Config: `-` - Runtime Modules: `-` - Build Modules: `-` ### Reproduction [https://github.com/yyyanghj/nuxt-issue-9357](https://github.com/yyyanghj/nuxt-issue-9357) ### Describe the bug Importing a CSS file to load a font failed. The server responds with an html file instead of a font file. If I import the font.css in the ` ``` https://user-images.githubusercontent.com/34713301/204149097-89818bda-76e4-4d54-bf31-563142e19702.mov ### Additional context _No response_ ### Logs _No response_
sapphi-red commented 1 year ago

Closing as I confirmed this wasn't intended to be created.