From b2392458ebf42594b9fc5390fda40d7a0a12f923 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 03 九月 2025 17:40:52 +0800
Subject: [PATCH] 调试自动生成网格融合图片功能(待完成)

---
 vite.config.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/vite.config.js b/vite.config.js
index 56719e5..5cbb041 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,6 +2,7 @@
 
 import { defineConfig } from 'vite';
 import vue from '@vitejs/plugin-vue';
+// import ViteSvgr from 'vite-plugin-svgr';
 import Components from 'unplugin-vue-components/vite';
 import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
 
@@ -9,6 +10,7 @@
 export default defineConfig({
   plugins: [
     vue(),
+    // ViteSvgr(),
     Components({
       // allow auto load markdown components under `./src/components/`
       extensions: ['vue', 'md'],
@@ -27,6 +29,17 @@
       '@': fileURLToPath(new URL('./src', import.meta.url))
     }
   },
+  css: {
+    // postcss: {
+    //   plugins: [autoprefixer],
+    // },
+    preprocessorOptions: {
+      scss: {
+        additionalData: `@use "@/styles/index.scss" as *;`
+        // additionalData: '@import   "@/styles/index.scss";'
+      }
+    }
+  },
   server: {
     host: '0.0.0.0'
   }

--
Gitblit v1.9.3