123456789101112131415161718192021222324252627282930313233343536 |
- import type { PluginOption } from 'vite';
- import vue from '@vitejs/plugin-vue';
- import vueJsx from '@vitejs/plugin-vue-jsx';
- import appInfo from './app-info';
- import createAutoImport from './auto-import';
- import createComponents from './components';
- import createDevtools from './dev-tools';
- import createHtml from './html';
- import createUnocss from './unocss';
- import createSetupExtend from './setup-extend';
- import createLayouts from './layouts';
- import createPage from './pages';
- import createCompression from './compression';
- import createQiankun from './qiankun';
- import createBanner from './banner';
- import createCodeInspectorPlugin from './codeInspectorPlugin.ts';
- export default function createVitePlugins() {
- const vitePlugins: (PluginOption | PluginOption[])[] = [appInfo(), vue(), vueJsx()];
- vitePlugins.push(createAutoImport());
- vitePlugins.push(createComponents());
- vitePlugins.push(createDevtools());
- vitePlugins.push(createHtml());
- vitePlugins.push(createUnocss());
- vitePlugins.push(createSetupExtend());
- vitePlugins.push(createLayouts());
- vitePlugins.push(createPage());
- vitePlugins.push(createCompression());
- vitePlugins.push(createQiankun());
- vitePlugins.push(createBanner());
- vitePlugins.push(createCodeInspectorPlugin());
- return vitePlugins;
- }
|