🚀 meta: initial commit

This commit is contained in:
Jacob Babich
2021-03-30 13:28:52 -04:00
commit 2ac0c9862d
21 changed files with 3439 additions and 0 deletions

32
svelte.config.cjs Normal file
View File

@@ -0,0 +1,32 @@
const { mdsvex } = require("mdsvex");
const mdsvexConfig = require("./mdsvex.config.cjs");
const sveltePreprocess = require('svelte-preprocess');
const static = require('@sveltejs/adapter-static');
const pkg = require('./package.json');
/** @type {import('@sveltejs/kit').Config} */
module.exports = {
extensions: [".svelte", ...mdsvexConfig.extensions],
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
mdsvex(mdsvexConfig),
sveltePreprocess({
defaults: {
style: "postcss",
},
}),
],
kit: {
adapter: static(),
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: {
ssr: {
noExternal: Object.keys(pkg.dependencies || {})
}
}
}
};