n0mbers/vite.config.ts
2022-02-15 08:46:02 +01:00

26 lines
596 B
TypeScript

import vueI18n from '@intlify/vite-plugin-vue-i18n'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import Icons from 'unplugin-icons/vite'
import { fileURLToPath, URL } from 'url'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
base: '/compte/',
plugins: [
vue({
reactivityTransform: true,
}),
Icons({ autoInstall: true }),
vueI18n({
include: path.resolve(__dirname, 'src/locales/**'),
}),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})