chore: use defineConfig
This commit is contained in:
parent
bf324ce33d
commit
7074ca3704
@ -1,15 +1,15 @@
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { UserConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import Vue from '@vitejs/plugin-vue'
|
import Vue from '@vitejs/plugin-vue'
|
||||||
import Pages from 'vite-plugin-pages'
|
import Pages from 'vite-plugin-pages'
|
||||||
import ViteIcons, { ViteIconsResolver } from 'vite-plugin-icons'
|
import ViteIcons, { ViteIconsResolver } from 'vite-plugin-icons'
|
||||||
import ViteComponents from 'vite-plugin-components'
|
import ViteComponents from 'vite-plugin-components'
|
||||||
import Markdown from 'vite-plugin-md'
|
import Markdown from 'vite-plugin-md'
|
||||||
import { VitePWA } from 'vite-plugin-pwa'
|
import VitePWA from 'vite-plugin-pwa'
|
||||||
import VueI18n from '@intlify/vite-plugin-vue-i18n'
|
import VueI18n from '@intlify/vite-plugin-vue-i18n'
|
||||||
import Prism from 'markdown-it-prism'
|
import Prism from 'markdown-it-prism'
|
||||||
|
|
||||||
const config: UserConfig = {
|
export default defineConfig({
|
||||||
alias: {
|
alias: {
|
||||||
'/~/': `${path.resolve(__dirname, 'src')}/`,
|
'/~/': `${path.resolve(__dirname, 'src')}/`,
|
||||||
},
|
},
|
||||||
@ -80,6 +80,4 @@ const config: UserConfig = {
|
|||||||
include: [path.resolve(__dirname, 'locales/**')],
|
include: [path.resolve(__dirname, 'locales/**')],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
}
|
})
|
||||||
|
|
||||||
export default config
|
|
||||||
|
Loading…
Reference in New Issue
Block a user