// vite.config.js
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import WindiCss from "vite-plugin-windicss";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
import Icons from "unplugin-icons/vite";
import IconsResolver from "unplugin-icons/resolver";
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
import basicSsl from "@vitejs/plugin-basic-ssl";
var __vite_injected_original_dirname = "D:\\szbz_project\\txyx_pc";
var vite_config_default = defineConfig({
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "src"),
      "~": path.resolve(__vite_injected_original_dirname, "src")
    }
  },
  plugins: [
    vue({
      reactivityTransform: true
    }),
    WindiCss(),
    basicSsl(),
    AutoImport({
      dts: "src/auto-imports.d.ts",
      imports: ["vue", "vue/macros", "vue-router"],
      dirs: [
        "src/composables",
        "src/store",
        "src/utils"
      ],
      resolvers: [
        ElementPlusResolver()
      ],
      vueTemplate: true,
      eslintrc: {
        enabled: false,
        filepath: "./.eslintrc-auto-import.json",
        globalsPropValue: true
      }
    }),
    Components({
      dts: "src/components.d.ts",
      dirs: ["src/components/"],
      extensions: ["vue", "md"],
      include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
      resolvers: [IconsResolver(), ElementPlusResolver()]
    }),
    Icons({
      compiler: "vue3",
      autoInstall: true
    })
  ],
  server: {
    host: true
  },
  build: {
    assetsInlineLimit: 1024 * 1e3,
    rollupOptions: {
      output: {
        manualChunks: {
          axios: ["axios"]
        }
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,[encoded data, 6096 characters]
