From adc9abd145c24f2d3e7033bb738e1e8641eaf4cf Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 02 九月 2025 17:30:43 +0800 Subject: [PATCH] 2025.9.2 --- 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