38 lines
1.8 KiB
JavaScript
38 lines
1.8 KiB
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import {fileURLToPath, URL} from 'node:url';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
port: 5444,
|
|
host: '0.0.0.0',
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'@adapters': fileURLToPath(new URL('./src/adapters', import.meta.url)),
|
|
'@admin_pages': fileURLToPath(new URL('./src/components/6_admin_pages', import.meta.url)),
|
|
'@atoms': fileURLToPath(new URL('./src/components/1_atoms', import.meta.url)),
|
|
'@cmp': fileURLToPath(new URL('./src/components', import.meta.url)),
|
|
'@directives': fileURLToPath(new URL('./src/directives', import.meta.url)),
|
|
'@frames': fileURLToPath(new URL('./src/components/4_frames', import.meta.url)),
|
|
'@helpers': fileURLToPath(new URL('./src/helpers', import.meta.url)),
|
|
'@mocks': fileURLToPath(new URL('./tests/mocks', import.meta.url)),
|
|
'@molecules': fileURLToPath(new URL('./src/components/2_molecules', import.meta.url)),
|
|
'@organisms': fileURLToPath(new URL('./src/components/3_organisms', import.meta.url)),
|
|
'@pages': fileURLToPath(new URL('./src/components/5_pages', import.meta.url)),
|
|
'@router': fileURLToPath(new URL('./src/router', import.meta.url)),
|
|
'@services': fileURLToPath(new URL('./src/services', import.meta.url)),
|
|
'@store': fileURLToPath(new URL('./src/store', import.meta.url)),
|
|
'@useCases': fileURLToPath(new URL('./src/useCases', import.meta.url)),
|
|
'@utils': fileURLToPath(new URL('./src/utils', import.meta.url)),
|
|
}
|
|
},
|
|
test: {
|
|
globals:true,
|
|
environment: 'happy-dom',
|
|
}
|
|
})
|