withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
45.42k stars 2.37k forks source link

`vite.build.assetsInlineLimit` parameter is invalid #11361

Open J-env opened 2 months ago

J-env commented 2 months ago

Astro Info

Astro                    v4.10.3+
Node                     v18.18.0
System                   macOS (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/vue

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

This image is only 3.3 kb, but there is no base64 inline

image

What's the expected result?

<img src="data:image/png;base64,........." width="1920" height="42" alt="">

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-8wxxjt?file=src%2Fpages%2Findex.astro

Participation

peipei818 commented 1 month ago

How to fix it? I also want to use base64 image.