vite.config.js 441 B

1234567891011121314151617181920
  1. import { defineConfig } from "vite";
  2. import vue from "@vitejs/plugin-vue";
  3. import { fileURLToPath, URL } from "node:url";
  4. export default defineConfig({
  5. base: "./",
  6. plugins: [
  7. vue({
  8. template: {
  9. // Keep public/static URLs relative to the generated index.html.
  10. transformAssetUrls: false,
  11. },
  12. }),
  13. ],
  14. resolve: {
  15. alias: {
  16. "@": fileURLToPath(new URL("./src", import.meta.url)),
  17. },
  18. },
  19. });