Skip to content

Vite Config

项目封装了一层vite配置,并集成了一些插件,方便在多个包以及应用内复用,使用方式如下:

应用

ts
// vite.config.mts
import { defineConfig } from '@zuxy/vite-config';

export default defineConfig(async () => {
  return {
    application: {},
    // vite配置,参考vite官方文档进行覆盖
    vite: {},
  };
});

ts
// vite.config.mts
import { defineConfig } from '@zuxy/vite-config';

export default defineConfig(async () => {
  return {
    library: {},
    // vite配置,参考vite官方文档进行覆盖
    vite: {},
  };
});

贡献者

The avatar of contributor named as zl zl
The avatar of contributor named as vben vben
The avatar of contributor named as Vben Vben
The avatar of contributor named as vince vince

页面历史

基于 MIT 许可发布.