vite.config.ts 609 B

1234567891011121314151617181920212223242526272829
  1. import { fileURLToPath, URL } from "url";
  2. import { defineConfig } from "vite";
  3. import vue from "@vitejs/plugin-vue";
  4. import { quasar, transformAssetUrls } from "@quasar/vite-plugin";
  5. // https://vitejs.dev/config/
  6. export default defineConfig({
  7. plugins: [
  8. vue({
  9. template: { transformAssetUrls },
  10. }),
  11. quasar({
  12. sassVariables: "src/quasar-variables.sass",
  13. }),
  14. ],
  15. resolve: {
  16. alias: {
  17. "@": fileURLToPath(new URL("./src", import.meta.url)),
  18. },
  19. },
  20. build: {
  21. outDir: "../backend/static_dist",
  22. },
  23. test: {
  24. environment: "jsdom",
  25. globals: true,
  26. },
  27. });