From ca9016414c3cfb842a976cf2590221d83b1dd1c2 Mon Sep 17 00:00:00 2001 From: Meiyi Date: Wed, 29 May 2024 01:25:10 +1000 Subject: [PATCH] :wrench: Add css use img svg --- vite.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index a70a7af..c5c60c2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,12 @@ import { defineConfig } from 'vite' export default defineConfig({ plugins: [ react(), - VitePluginLinaria(), + VitePluginLinaria({ + include: ['**/*.{ts,tsx}'], + babelOptions: { + presets: ['@babel/preset-typescript', '@babel/preset-react'], + }, + }), ], base: 'https://MeganxLi.github.io/coffee-guide', })