⬆️ upgrade dependencies

This commit is contained in:
landaiqing
2024-09-27 01:34:25 +08:00
parent 172bf00d93
commit d6741aaa6f
13 changed files with 1043 additions and 504 deletions

View File

@@ -7,9 +7,6 @@ import {nodePolyfills} from "vite-plugin-node-polyfills";
import Components from 'unplugin-vue-components/vite';
import {AntDesignVueResolver} from 'unplugin-vue-components/resolvers';
import AutoImport from 'unplugin-auto-import/vite';
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
import {dirname, resolve} from 'node:path';
import {fileURLToPath} from 'node:url';
export default defineConfig(({mode}: { mode: string }): object => {
const env: Record<string, string> = loadEnv(mode, process.cwd());
@@ -22,11 +19,6 @@ export default defineConfig(({mode}: { mode: string }): object => {
}
},
plugins: [vue(),
VueI18nPlugin({
/* options */
// locale messages resource pre-compile option
include: resolve(dirname(fileURLToPath(import.meta.url)), './src/locales/language/**'),
}),
Components({
dts: true,
dirs: ['src/components', 'src/views'],
@@ -84,6 +76,7 @@ export default defineConfig(({mode}: { mode: string }): object => {
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
javascriptEnabled: true,
},
less: {