33 lines
743 B
JavaScript
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
|
|
}),
|
|
],
|
|
},
|
|
},
|
|
};
|