Files
Modrinth-plus/svelte.config.js

34 lines
791 B
JavaScript
Raw Normal View History

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