From 215b0c5cb2ff0ef0b2c7b5549704e23d651a4df9 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Thu, 10 Oct 2024 21:51:10 -0400 Subject: Hoist the UI one step up further --- svelte.config.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 svelte.config.js (limited to 'svelte.config.js') diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 0000000..5e64863 --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,30 @@ +import adapter from '@sveltejs/adapter-static'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + kit: { + adapter: adapter({ + pages: 'target/ui', + fallback: 'index.html', + }), + files: { + hooks: { + universal: 'ui/hooks', + server: 'ui/hooks.server', + client: 'ui/hooks.client', + }, + assets: 'ui/static', + lib: 'ui/lib', + params: 'ui/params', + routes: 'ui/routes', + serviceWorker: 'ui/service-worker', + appTemplate: 'ui/app.html', + errorTemplate: 'ui/error.html', + }, + outDir: 'target/svelte-kit', + }, + preprocess: vitePreprocess(), +}; + +export default config; -- cgit v1.2.3