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
false
config repo
import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import imagemin from 'unplugin-imagemin/vite'; import path from 'path'; // https://vitejs.dev/config/ export default defineConfig({ // base: '/pathe/', resolve: { alias: { '~/': `${path.resolve(__dirname, 'src')}/`, '@/': `${path.resolve(__dirname, 'src')}/`, }, }, build: { // assetsInlineLimit: 4096 * 2, }, plugins: [ vue(), imagemin({ // Default mode sharp. support squoosh and sharp mode: 'sharp', // cache: true, beforeBundle: false, // Default configuration options for compressing different pictures compress: { jpg: { quality: 10, }, jpeg: { quality: 10, }, png: { quality: 10, }, webp: { quality: 10, }, }, conversion: [ { from: 'jpeg', to: 'webp' }, { from: 'jpg', to: 'webp' }, { from: 'png', to: 'webp' }, ], }), ], });
normal
Compress error
win
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
config repo
What is expected?
normal
What is actually happening?
Compress error
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: