-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathvite.config.ts
More file actions
40 lines (39 loc) · 1.04 KB
/
vite.config.ts
File metadata and controls
40 lines (39 loc) · 1.04 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { paraglideVitePlugin } from '@inlang/paraglide-js';
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
server: {
port: 6173
},
preview: {
port: 6173
},
build: {
sourcemap: true
},
plugins: [
tailwindcss(),
sveltekit(),
paraglideVitePlugin({
project: './paraglide/default.inlang',
outdir: './src/lib/paraglide',
strategy: ['url'],
// allow for everything except /downloads/* or user-data
routeStrategies: [
{ match: '/downloads', exclude: true },
{ match: '/user-data', exclude: true }
]
}),
paraglideVitePlugin({
project: './paraglide/google-play.inlang',
outdir: './src/lib/google-play/paraglide',
strategy: ['url'],
// allow only for /downloads/* or user-data
routeStrategies: [{ match: '((?!downloads|user-data))', exclude: true }]
})
],
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
});