blog-ui/packages/editor/vite.config.ts
zhouhongshuo ca9430f82c 初始化
2024-08-25 23:46:05 +08:00

23 lines
545 B
TypeScript

import { fileURLToPath, URL } from "node:url";
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
import Vue from "@vitejs/plugin-vue";
import path from "node:path";
import Icons from "unplugin-icons/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [
Vue(),
Icons({ compiler: "vue3" }),
VueI18nPlugin({
include: [path.resolve(__dirname, "./src/locales/*.yaml")],
}),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
});