| | |
| | | |
| | | 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'; |
| | | |
| | |
| | | export default defineConfig({ |
| | | plugins: [ |
| | | vue(), |
| | | // ViteSvgr(), |
| | | Components({ |
| | | // allow auto load markdown components under `./src/components/` |
| | | extensions: ['vue', 'md'], |
| | |
| | | preprocessorOptions: { |
| | | scss: { |
| | | additionalData: `@use "@/styles/index.scss" as *;` |
| | | // additionalData: '@import "@/styles/index.scss";' |
| | | } |
| | | } |
| | | }, |