2022-04-03 19:26:49 +08:00
|
|
|
import type {UserConfig} from 'vite';
|
|
|
|
import type {Options} from '@vitejs/plugin-vue'
|
2022-04-04 15:32:41 +08:00
|
|
|
import {Options as PolyfillOptions } from '@vitejs/plugin-legacy'
|
2022-04-03 19:26:49 +08:00
|
|
|
import createPlugin from '@vitejs/plugin-vue-jsx'
|
2022-04-04 15:32:41 +08:00
|
|
|
import {createHtmlPlugin} from 'vite-plugin-html'
|
2022-04-03 19:26:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
export interface ViteBuildConfig {
|
2022-04-04 16:44:50 +08:00
|
|
|
viteOption?: UserConfig;
|
|
|
|
viteVuePlugin?: Options;
|
|
|
|
viteVueJsx?: Parameters<typeof createPlugin>[0];
|
|
|
|
viteLegacy?: PolyfillOptions;
|
|
|
|
viteHtml?: Parameters<typeof createHtmlPlugin>[0]
|
2022-04-03 19:26:49 +08:00
|
|
|
}
|