vite.config.ts 483 B

1234567891011121314151617181920212223242526
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. import vueJsx from '@vitejs/plugin-vue-jsx'
  5. // https://vitejs.dev/config/
  6. export default defineConfig({
  7. css: {
  8. preprocessorOptions: {
  9. scss: {
  10. api: "modern-compiler" // or 'modern'
  11. }
  12. }
  13. },
  14. plugins: [
  15. vue(),
  16. vueJsx(),
  17. ],
  18. resolve: {
  19. alias: {
  20. '@': fileURLToPath(new URL('./src', import.meta.url))
  21. }
  22. }
  23. })