mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2025-12-12 17:05:50 +00:00
47 lines
927 B
TypeScript
47 lines
927 B
TypeScript
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'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineUserConfig({
|
|
lang: 'de-DE',
|
|
...meta,
|
|
theme,
|
|
bundler: viteBundler({
|
|
viteOptions: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
}),
|
|
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,
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
})
|