fix: convert screenshots/images to webp

This commit is contained in:
trafficlunar 2024-12-31 22:03:39 +00:00
parent 2f7e268062
commit 1fafe67d1a
6 changed files with 285 additions and 4 deletions

View file

@ -3,10 +3,11 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import { imagetools } from "vite-imagetools";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), svgr()],
plugins: [react(), svgr(), imagetools()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),