vite.config.js 485 B

12345678910111213141516171819202122232425
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. plugins: [
  7. vue(),
  8. ],
  9. base: './',
  10. resolve: {
  11. alias: {
  12. '@': fileURLToPath(new URL('./src', import.meta.url))
  13. }
  14. },
  15. css: {
  16. preprocessorOptions: {
  17. scss: {
  18. charest: false,
  19. additionalData: `@import "@/assets/scss/variable.scss";`,
  20. },
  21. },
  22. },
  23. })