mirror of
https://github.com/ArthurDanjou/artdanj-resume.git
synced 2026-01-14 15:54:06 +01:00
67 lines
1.3 KiB
TypeScript
67 lines
1.3 KiB
TypeScript
/// <reference types="vitest" />
|
|
|
|
import path from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import Vue from '@vitejs/plugin-vue'
|
|
import Pages from 'vite-plugin-pages'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
import WindiCSS from 'vite-plugin-windicss'
|
|
import VueI18n from '@intlify/vite-plugin-vue-i18n'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'~/': `${path.resolve(__dirname, 'src')}/`,
|
|
},
|
|
},
|
|
plugins: [
|
|
Vue(),
|
|
|
|
// https://github.com/hannoeru/vite-plugin-pages
|
|
Pages(),
|
|
|
|
WindiCSS(),
|
|
|
|
// https://github.com/antfu/unplugin-auto-import
|
|
AutoImport({
|
|
imports: [
|
|
'vue',
|
|
'vue-router',
|
|
'@vueuse/core',
|
|
'@vueuse/head',
|
|
'vitest',
|
|
],
|
|
dts: true,
|
|
}),
|
|
|
|
// https://github.com/antfu/vite-plugin-components
|
|
Components({
|
|
dts: true,
|
|
}),
|
|
|
|
VueI18n({
|
|
runtimeOnly: true,
|
|
compositionOnly: true,
|
|
include: [path.resolve(__dirname, 'locales/**')],
|
|
}),
|
|
],
|
|
|
|
// https://github.com/vitest-dev/vitest
|
|
test: {
|
|
environment: 'jsdom',
|
|
},
|
|
|
|
optimizeDeps: {
|
|
include: [
|
|
'vue',
|
|
'vue-router',
|
|
'@vueuse/core',
|
|
'@vueuse/head',
|
|
],
|
|
exclude: [
|
|
'vue-demi',
|
|
],
|
|
},
|
|
})
|