diff --git a/web-vue/vite.config.ts b/web-vue/vite.config.ts index a0e46f5109790e2edb7a7f635d82f9b96f8c49ef..3255b7af3e4f9210d40a7ec240486cfb17772ed7 100644 --- a/web-vue/vite.config.ts +++ b/web-vue/vite.config.ts @@ -9,17 +9,17 @@ /// import path from 'node:path' -import { ConfigEnv, defineConfig, loadEnv } from 'vite' +import {ConfigEnv, defineConfig, loadEnv} from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' -import { createHtmlPlugin } from 'vite-plugin-html' -import { visualizer } from 'rollup-plugin-visualizer' +import {createHtmlPlugin} from 'vite-plugin-html' +import {visualizer} from 'rollup-plugin-visualizer' //自动导入vue中hook reactive ref等 import AutoImport from 'unplugin-auto-import/vite' //自动导入ui-组件 比如说ant-design-vue element-plus等 import Components from 'unplugin-vue-components/vite' //ant-design-vue -import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers' +import {AntDesignVueResolver} from 'unplugin-vue-components/resolvers' import postcss from 'postcss' // https://vitejs.dev/config/ export default defineConfig(({ mode }: ConfigEnv) => { @@ -103,7 +103,6 @@ export default defineConfig(({ mode }: ConfigEnv) => { }), createHtmlPlugin({ minify: true, - viteNext: true, inject: { data: { title: env.JPOM_APP_TITLE,