Files
Modrinth-plus/svelte.config.js

31 lines
593 B
JavaScript
Raw Normal View History

2022-03-09 22:18:22 -08:00
import { mdsvex } from 'mdsvex';
import mdsvexConfig from './mdsvex.config.js';
2022-03-07 21:55:31 -08:00
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
2022-03-09 23:17:28 -08:00
import Icons from 'unplugin-icons/vite';
2022-03-07 21:55:31 -08:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
2022-03-09 22:18:22 -08:00
extensions: ['.svelte', ...mdsvexConfig.extensions],
2022-03-09 21:27:53 -08:00
preprocess: [
preprocess({
postcss: true,
}),
2022-03-09 22:18:22 -08:00
mdsvex(mdsvexConfig),
2022-03-09 21:27:53 -08:00
],
2022-03-07 21:55:31 -08:00
2022-03-09 21:27:53 -08:00
kit: {
adapter: adapter(),
2022-03-09 23:17:28 -08:00
vite: {
plugins: [
Icons({
compiler: 'svelte',
}),
],
},
2022-03-09 21:27:53 -08:00
},
2022-03-07 21:55:31 -08:00
};
export default config;