-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
25 lines (24 loc) · 656 Bytes
/
vite.config.ts
File metadata and controls
25 lines (24 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import tailwindcss from '@tailwindcss/vite'
import { resolve } from 'path'
export default defineConfig({
plugins: [
svelte(),
tailwindcss()
],
resolve: {
alias: {
'@': resolve(__dirname, './src'),
'@pages': resolve(__dirname, './src/pages'),
'@shared': resolve(__dirname, './src/shared'),
'@ui': resolve(__dirname, './src/shared/ui'),
'@db': resolve(__dirname, './src/generated/contentDatabase.ts'),
}
},
base: '/',
// Handle client-side routing in dev server
server: {
historyApiFallback: true
}
})