vite.config.js 604 B

1234567891011121314151617181920212223
  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: [vue()],
  7. base: "./",
  8. resolve: {
  9. alias: {
  10. "@": fileURLToPath(new URL("./src", import.meta.url)),
  11. "@common": fileURLToPath(new URL("./src/common", import.meta.url)),
  12. },
  13. },
  14. // css: {
  15. // preprocessorOptions: {
  16. // scss: {
  17. // additionalData: `@import "@/common/scss/mixin.scss";
  18. // @import "@/common/scss/variable.scss";`,
  19. // },
  20. // },
  21. // },
  22. });