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
I'm using Vite with Remix. For some reason, images that are imported in the app directory are optimized, but images in the public directory or not, even when includePublic true.
Describe the Bug
I'm using Vite with Remix. For some reason, images that are imported in the
app
directory are optimized, but images in the public directory or not, even whenincludePublic
true.Steps to reproduce
pnpm create vite
& select "Remix"pnpm add vite-plugin-image-optimizer sharp svgo -D
ViteImageOptimizer({ includePublic: true })
to vite.config.tsAlternatively, clone this repo to reproduce: https://github.com/natmfat/bug-vite-plugin-image-optimizer
I expected images in the "public" directory to be transformed as well, not just ones that are imported.
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: