Configs & packages for svelte kit setup

This commit is contained in:
2021-10-27 18:02:45 +02:00
parent 14d6ec6c39
commit 0457239fd3
5 changed files with 109 additions and 0 deletions

17
svelte.config.js Normal file
View File

@@ -0,0 +1,17 @@
import preprocess from 'svelte-preprocess';
import node from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
adapter: node({ out: 'build' })
}
};
export default config;