aboutsummaryrefslogtreecommitdiff
path: root/vite.config.ts
blob: fb7323e86fbb715afd5ff1cb8422c270b6916c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
	base: "https://slides.indrajith.dev/react-hooks",
	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'),
			"@assets": path.resolve(__dirname, "./Assets")
		},
	},
})