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
Posting the vite-plugin version of my project to 5, I found some different behavior than before.
1. It does not follow the build assetsInlineLimit settings set in vite.config.ts.
I set assetsInlineLimit to 0, and if you import the image from *.css.ts and use it as a background, it will be applied as base64 data image unlike before.
2. Doublequote does not auto wrap when using the imported image.
If use svg, the base64 code is not valid and must wrap the doublequote.
import{style}from'@vanilla-extract/css';importassetfrom'./logo.svg';exportconstlogo=style({background: `url("${asset}") no-repeat 50% 50%`, ✅
// If use svg, the base64 code is not valid and must wrap the doublequote.// background: `url(${asset}) no-repeat 50% 50%`, ❌});
I created a link to the sample codesandbox.
Please check vite.config.ts and App.css.ts.
Describe the bug
Hello.
Posting the vite-plugin version of my project to 5, I found some different behavior than before.
1. It does not follow the build assetsInlineLimit settings set in vite.config.ts.
I set assetsInlineLimit to 0, and if you import the image from *.css.ts and use it as a background, it will be applied as base64 data image unlike before.
2. Doublequote does not auto wrap when using the imported image.
If use svg, the base64 code is not valid and must wrap the doublequote.
I created a link to the sample codesandbox.
Please check vite.config.ts and App.css.ts.
Thanks.
Reproduction
https://codesandbox.io/p/devbox/vite-react-ts-forked-f5v63m
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: