mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /area console /kind feature #### What this PR does / why we need it: 添加 `@halo-dev/ui-plugin-bundler-kit` 包,用于向插件提供统一的 Vite 构建配置。 最终用法: ```bash pnpm install @halo-dev/ui-plugin-bundler-kit -D ``` vite.config.ts ```ts import { HaloUIPluginBundlerKit } from "@halo-dev/ui-plugin-bundler-kit"; export default defineConfig({ plugins: [ Vue(), Icons({ compiler: "vue3" }), HaloUIPluginBundlerKit(), ], resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, }); ``` #### Which issue(s) this PR fixes: Fixes #4912 #### Special notes for your reviewer: 测试方式: 1. 在任意支持 UI 扩展的插件中添加此包:`pnpm install path/to/halo/console/packages/ui-plugin-bundler-kit` 2. 构建插件,检查 UI 相关的构建产物以及功能是否正常。 #### Does this PR introduce a user-facing change? ```release-note 添加 `@halo-dev/ui-plugin-bundler-kit` 包,用于向插件提供统一的构建配置。 ``` |
||
---|---|---|
.. | ||
src | ||
.eslintignore | ||
.eslintrc.js | ||
.prettierrc.cjs | ||
build.config.ts | ||
package.json | ||
tsconfig.json |