🚀 meta: initial commit
This commit is contained in:
32
svelte.config.cjs
Normal file
32
svelte.config.cjs
Normal 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 || {})
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user