summaryrefslogtreecommitdiff
path: root/svelte.config.js
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-10 21:51:10 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-10 21:52:26 -0400
commit215b0c5cb2ff0ef0b2c7b5549704e23d651a4df9 (patch)
tree356484ce699539f2937b768d1a1c9b83f0c7a402 /svelte.config.js
parent4401dce2b5545ce8117818812d8e3c8919f5f7fd (diff)
Hoist the UI one step up further
Diffstat (limited to 'svelte.config.js')
-rw-r--r--svelte.config.js30
1 files changed, 30 insertions, 0 deletions
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;