You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
vite.build.assetsInlineLimit configuration is invalid.
When i use background image url to import img in css, it was valid. Imported or referenced assets that are smaller than this threshold will be inlined as base64 URLs.
div {
background-image: url('../assets/check.svg');
}
But when i use import img in javascript, it was invalid.
---
import checkImg from '../assets/check.svg';
---
<img src={checkImg.src} alt="" />
What's the expected result?
I want to use base64 image.
Link to Minimal Reproducible Example
Participation
I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
vite.build.assetsInlineLimit configuration is invalid.
When i use background image url to import img in css, it was valid. Imported or referenced assets that are smaller than this threshold will be inlined as base64 URLs.
But when i use import img in javascript, it was invalid.
What's the expected result?
I want to use base64 image.
Link to Minimal Reproducible Example
Participation
The text was updated successfully, but these errors were encountered: