vite.config.ts 588 B

123456789101112131415161718192021222324252627282930
  1. import path from "path";
  2. import tailwind from "tailwindcss";
  3. import autoprefixer from "autoprefixer";
  4. import vue from "@vitejs/plugin-vue";
  5. import { defineConfig } from "vite";
  6. export default defineConfig({
  7. server: {
  8. port: 6173
  9. },
  10. plugins: [
  11. vue()
  12. ],
  13. build: {
  14. sourcemap: false
  15. },
  16. optimizeDeps: {
  17. exclude: ["punycode"]
  18. },
  19. css: {
  20. postcss: {
  21. plugins: [tailwind(), autoprefixer()],
  22. },
  23. },
  24. resolve: {
  25. alias: {
  26. "@": path.resolve(__dirname, "./src"),
  27. },
  28. },
  29. })