vite.config.js 523 B

123456789101112131415161718192021222324
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. import vueDevTools from 'vite-plugin-vue-devtools'
  5. // https://vite.dev/config/
  6. export default defineConfig({
  7. plugins: [
  8. vue({
  9. template: {
  10. compilerOptions: {
  11. isCustomElement: (tag) => tag.startsWith('vue-seamless-scroll')
  12. }
  13. }
  14. }),
  15. vueDevTools(),
  16. ],
  17. resolve: {
  18. alias: {
  19. '@': fileURLToPath(new URL('./src', import.meta.url))
  20. },
  21. },
  22. })