Skip to content

Vite Config

The project encapsulates a layer of Vite configuration and integrates some plugins for easy reuse across multiple packages and applications. The usage is as follows:

Application

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

export default defineConfig(async () => {
  return {
    application: {},
    // Vite configuration, override according to the official Vite documentation
    vite: {},
  };
});

Package

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

export default defineConfig(async () => {
  return {
    library: {},
    // Vite configuration, override according to the official Vite documentation
    vite: {},
  };
});

Contributors

The avatar of contributor named as invalid w invalid w
The avatar of contributor named as Li Kui Li Kui
The avatar of contributor named as vben vben
The avatar of contributor named as Vben Vben
The avatar of contributor named as vince vince

Changelog

Released under the MIT License.