Files
archival-university-website/svelte.config.cjs
Jacob Babich 84b5e7ff44 stuff
2021-04-26 02:35:41 -04:00

33 lines
743 B
JavaScript

const { imagetools } = require('vite-imagetools');
const { mdsvex } = require("mdsvex");
const mdsvexConfig = require("./mdsvex.config.cjs");
const preprocess = require('svelte-preprocess');
const static = require('@sveltejs/adapter-static');
/** @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),
preprocess({
postcss: true,
}),
],
kit: {
adapter: static(),
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: {
plugins: [
imagetools({
force: true
}),
],
},
},
};