From ec763e1cb7dca873caf4afbc0dfde047b51753d3 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 17 十月 2025 17:26:54 +0800
Subject: [PATCH] 2025.10.17
---
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