Files
archival-university-website/svelte.config.cjs
Jacob Babich acdbbe6d21 feat: more stuff
2021-04-16 21:30:02 -04:00

37 lines
858 B
JavaScript

const imagetools = require('vite-imagetools');
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({
postcss: true,
}),
],
kit: {
adapter: static(),
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: {
plugins: [
imagetools({
force: true
}),
],
ssr: {
noExternal: Object.keys(pkg.dependencies || {})
},
},
},
};