1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
resolve: {
alias: {
'@config': path.resolve(__dirname, './src/config.ts'),
'@components': path.resolve(__dirname, './src/lib/components/index.ts'),
'@motion': path.resolve(__dirname, './src/lib/motion/index.ts'),
'@languages': path.resolve(__dirname, './src/lib/languages/index.ts'),
'@lib': path.resolve(__dirname, './src/lib'),
'@stores': path.resolve(__dirname, './src/lib/stores'),
'@styles': path.resolve(__dirname, './src/lib/styles'),
},
},
})
|