char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: Move `styles/` to `$lib` scope (#26950)f2efd6414

char/aliceai-t5-moe
858 B34 linesraw
1import adapter from '@sveltejs/adapter-static';
2import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3import { mdsvex } from 'mdsvex';
4
5// CMake sets LLAMA_UI_OUT_DIR to the staging dir under the build tree; manual
6// `npm run build` runs without the env var default to ./dist.
7const outDir = process.env.LLAMA_UI_OUT_DIR ?? './dist';
8/** @type {import('@sveltejs/kit').Config} */
9const config = {
10	extensions: ['.svelte', '.svx'],
11
12	kit: {
13		adapter: adapter({
14			assets: outDir,
15			fallback: 'index.html',
16			pages: outDir,
17			precompress: false,
18			strict: true
19		}),
20		output: {
21			bundleStrategy: 'single'
22		},
23		paths: {
24			relative: true
25		},
26		router: { type: 'hash' }
27	},
28
29	// Consult https://svelte.dev/docs/kit/integrations
30	// for more information about preprocessors
31	preprocess: [vitePreprocess(), mdsvex()]
32};
33
34export default config;