| | |
| | | |
| | | 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'], |
| | |
| | | '@': 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' |
| | | } |