We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, congratulations on this amazing plugin.
I'm trying to compress images from the public folder using a customized root folder.
root
Using default root config plugin works fine 😃
// vite.config.mjs export default defineConfig({ plugins: [ ViteImageOptimizer({}), ], })
Changing root path, public assets are not being compressed. 😢
// vite.config.mjs export default defineConfig({ root: './src', publicDir: '../public', build: { outDir: '../dist', emptyOutDir: true, }, plugins: [ ViteImageOptimizer({}), ], })
A broken example can be found on https://github.com/tiagoporto/sign-of-the-horns-single-div/blob/main/vite.config.mjs
npm run build
System: OS: macOS 13.6.2 CPU: (12) arm64 Apple M2 Pro Memory: 2.95 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v20.10.0/bin/yarn npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm pnpm: 8.15.4 - ~/.nvm/versions/node/v20.10.0/bin/pnpm Browsers: Chrome: 122.0.6261.69 Chrome Canary: 124.0.6323.0 Safari: 16.6 npmPackages: vite: ^5.1.4 => 5.1.4 vite-plugin-image-optimizer: ^1.1.7 => 1.1.7 vite-plugin-minify: ^1.5.2 => 1.5.2 vite-plugin-pwa: ^0.19.0 => 0.19.0
npm
The text was updated successfully, but these errors were encountered:
fix: issue with absolute output paths
adb0b75
could also fix similar issue: FatehAK#36
I can confirm this issue is fixed in release v1.1.8 Thanks
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
Hey, congratulations on this amazing plugin.
I'm trying to compress images from the public folder using a customized
root
folder.Using default root config plugin works fine 😃
Changing
root
path, public assets are not being compressed. 😢Steps to reproduce
A broken example can be found on https://github.com/tiagoporto/sign-of-the-horns-single-div/blob/main/vite.config.mjs
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: