add sveltekit version

This commit is contained in:
Julian Tölle 2021-04-24 01:30:09 +02:00
parent 2f522be388
commit d1c0eb8d17
20 changed files with 3252 additions and 0 deletions

21
svelte.config.cjs Normal file
View file

@ -0,0 +1,21 @@
const sveltePreprocess = require('svelte-preprocess');
const vercel = require('@sveltejs/adapter-vercel');
const pkg = require('./package.json');
/** @type {import('@sveltejs/kit').Config} */
module.exports = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
sveltePreprocess({
postcss: true
})
],
kit: {
adapter: vercel(),
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
}
};