34 lines
759 B
TypeScript
34 lines
759 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import WindiCSS from 'vite-plugin-windicss'
|
|
import { resolve, dirname } from 'node:path'
|
|
import { fileURLToPath } from 'url'
|
|
import VueI18nPlugin from '@intlify/vite-plugin-vue-i18n'
|
|
import path from 'path'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
VueI18nPlugin({
|
|
include: resolve(dirname(fileURLToPath(import.meta.url)), './src/i18n/locales/**'),
|
|
}),
|
|
WindiCSS(),
|
|
],
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: 'vue',
|
|
replacement: 'vue/dist/vue.esm-bundler.js',
|
|
},
|
|
{
|
|
find: '@',
|
|
replacement: path.resolve(__dirname, './src'),
|
|
},
|
|
],
|
|
},
|
|
server: {
|
|
port: 8082,
|
|
},
|
|
})
|