ruoyi-plus-vben5/docs/src/guide/project/vite.md

34 lines
621 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Vite Config
项目封装了一层vite配置并集成了一些插件方便在多个包以及应用内复用使用方式如下
## 应用
```ts
// vite.config.mts
import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
// vite配置参考vite官方文档进行覆盖
vite: {},
};
});
```
## 包
```ts
// vite.config.mts
import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
library: {},
// vite配置参考vite官方文档进行覆盖
vite: {},
};
});
```