aboutsummaryrefslogtreecommitdiff
path: root/svelte.config.cjs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-04-15 23:18:09 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-04-15 23:18:09 +0200
commitf088a6594c15951b85a56129944afa51a62dc765 (patch)
treee49f3f8d60d4f78c3e7591d34ff8b15ae673351c /svelte.config.cjs
parent58f7d52150456713d3132408668a92d0f6f3d084 (diff)
Update the config
Diffstat (limited to 'svelte.config.cjs')
-rw-r--r--svelte.config.cjs27
1 files changed, 27 insertions, 0 deletions
diff --git a/svelte.config.cjs b/svelte.config.cjs
new file mode 100644
index 0000000..cb51cef
--- /dev/null
+++ b/svelte.config.cjs
@@ -0,0 +1,27 @@
+const { resolve } = require('path');
+const node = require('@sveltejs/adapter-node');
+const pkg = require('./package.json');
+
+/** @type {import('@sveltejs/kit').Config} */
+module.exports = {
+ kit: {
+ // By default, `npm run build` will create a standard Node app.
+ // You can create optimized builds for different platforms by
+ // specifying a different adapter
+ adapter: node(),
+
+ // hydrate the <div id="forum"> element in src/app.html
+ target: '#forum',
+
+ vite: {
+ ssr: {
+ noExternal: Object.keys(pkg.dependencies || {})
+ },
+ resolve: {
+ alias: {
+ $: resolve('src')
+ }
+ }
+ }
+ }
+};