26 lines
715 B
JavaScript
26 lines
715 B
JavaScript
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 Layouts from 'vite-plugin-vue-layouts'
|
|
import eslintPlugin from 'vite-plugin-eslint'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'~': path.resolve(__dirname, 'src'),
|
|
Component: path.resolve(__dirname, 'src/components'),
|
|
Store: path.resolve(__dirname, 'src/stores'),
|
|
Svg: path.resolve(__dirname, 'src/assets/svg'),
|
|
},
|
|
},
|
|
plugins: [vue(), Pages(), Layouts(), Components(), eslintPlugin()],
|
|
build: {
|
|
target: 'esnext',
|
|
},
|
|
test: {
|
|
environment: 'happy-dom',
|
|
},
|
|
})
|