riku
2025-09-04 7f6661cca40e3530111d628222fa25462022ec78
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'
  }