// vite.config.ts
import { defineConfig } from "file:///F:/zheke/welcome-system-screen/node_modules/vite/dist/node/index.js";
import vue from "file:///F:/zheke/welcome-system-screen/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import AutoImport from "file:///F:/zheke/welcome-system-screen/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///F:/zheke/welcome-system-screen/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///F:/zheke/welcome-system-screen/node_modules/unplugin-vue-components/dist/resolvers.js";
import { createSvgIconsPlugin } from "file:///F:/zheke/welcome-system-screen/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import ElementPlus from "file:///F:/zheke/welcome-system-screen/node_modules/unplugin-element-plus/dist/vite.mjs";
var __vite_injected_original_dirname = "F:\\zheke\\welcome-system-screen";
var vite_config_default = defineConfig(({ command, mode }) => {
  console.log(command, mode);
  return {
    plugins: [
      vue(),
      AutoImport({
        resolvers: [ElementPlusResolver()],
        include: [
          /\.[tj]sx?$/,
          /\.vue$/,
          /\.vue\?vue/,
          /\.md$/
        ],
        imports: ["vue", "vue-router", "pinia", "@vueuse/core"],
        //注意这个配置和src同级
        dts: "./auto-imports.d.ts"
      }),
      createSvgIconsPlugin({
        // 指定需要缓存的图标文件夹
        iconDirs: [resolve(process.cwd(), "src/assets/icons")],
        // 指定symbolId格式
        symbolId: "icon-[dir]-[name]"
      }),
      Components({
        resolvers: [ElementPlusResolver()],
        // 指定自动导入的组件位置，默认是 src/components
        dirs: ["src/components", "src/otherComponents"]
      }),
      ElementPlus({
        // useSource: true
      })
    ],
    publicDir: "public",
    base: "/largeScreen/",
    server: {
      host: "0.0.0.0",
      port: 9527,
      open: false,
      strictPort: false
      // proxy: {}
    },
    resolve: {
      alias: {
        "@": resolve(__vite_injected_original_dirname, "./src"),
        "components": resolve(__vite_injected_original_dirname, "./src/components"),
        "api": resolve(__vite_injected_original_dirname, "./src/api")
      }
    },
    css: {
      // css预处理器
      preprocessorOptions: {
        scss: {
          // charset: false,
          additionalData: `@use "./src/assets/css/variable.scss" as *;`
        }
      }
    },
    build: {
      outDir: "dist"
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,[encoded data, 5412 characters]
