IT4C.dev/docs/.vuepress/config.js
Ulf Gebhardt 980b1441ca
images: better quality on jpeg images (#264)
Set the quality requirement for the jpeg optimization to 100% instead of
20%
2025-03-13 08:57:51 +01:00

43 lines
823 B
JavaScript

import { viteBundler } from '@vuepress/bundler-vite'
import Imagemin from 'vuepress-plugin-imagemin'
import { defineUserConfig } from 'vuepress'
import meta from './config/meta'
import theme from './config/theme'
export default defineUserConfig({
lang: 'de-DE',
...meta,
theme,
bundler: viteBundler({}),
plugins: [
Imagemin({
gifsicle: {
optimizationLevel: 7,
interlaced: false,
},
optipng: {
optimizationLevel: 7,
},
mozjpeg: {
quality: 100,
},
pngquant: {
quality: [0.8, 0.9],
speed: 4,
},
svgo: {
plugins: [
{
name: 'removeViewBox',
},
{
name: 'removeEmptyAttrs',
active: false,
},
],
},
}),
],
})