vite.config.pc.ts 580 B

123456789101112131415161718192021222324252627282930313233343536
  1. import path from 'node:path';
  2. import { defineConfig, loadConfigFromFile, loadEnv } from "vite";
  3. import Components from "unplugin-vue-components/vite";
  4. const config = defineConfig(({ command, mode, ssrBuild }) => {
  5. return {
  6. plugins: [
  7. Components({
  8. dirs: ["src/pc/components", "src/pc/pages/**/_components"],
  9. resolvers: [
  10. ],
  11. dts: "src/pc/components.d.ts",
  12. }),
  13. ],
  14. server: {
  15. port: 3333,
  16. },
  17. }
  18. });
  19. export default config;