Skip to content

Commit 33741e0

Browse files
committed
feat: Improve configuration
1 parent ff15caf commit 33741e0

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

tools/server/webui/playwright.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { defineConfig } from '@playwright/test';
33
export default defineConfig({
44
webServer: {
55
command: 'npm run build && npx http-server ../public -p 8181',
6-
port: 8181
6+
port: 8181,
7+
timeout: 120000,
8+
reuseExistingServer: false
79
},
810
testDir: 'e2e'
911
});

tools/server/webui/svelte.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const config = {
77
// Consult https://svelte.dev/docs/kit/integrations
88
// for more information about preprocessors
99
preprocess: [vitePreprocess(), mdsvex()],
10+
1011
kit: {
1112
paths: {
1213
relative: true
@@ -23,6 +24,7 @@ const config = {
2324
bundleStrategy: 'inline'
2425
}
2526
},
27+
2628
extensions: ['.svelte', '.svx']
2729
};
2830

tools/server/webui/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ function llamaCppBuildPlugin() {
7575
}
7676

7777
export default defineConfig({
78+
build: {
79+
chunkSizeWarningLimit: 3072
80+
},
81+
7882
plugins: [tailwindcss(), sveltekit(), devtoolsJson(), llamaCppBuildPlugin()],
83+
7984
test: {
8085
projects: [
8186
{
@@ -123,6 +128,7 @@ export default defineConfig({
123128
}
124129
]
125130
},
131+
126132
server: {
127133
proxy: {
128134
'/v1': 'http://localhost:8080',

0 commit comments

Comments
 (0)