midou36o.github.io/vite.config.ts

20 lines
516 B
TypeScript
Raw Normal View History

2023-01-19 18:05:09 +01:00
import { sveltekit } from '@sveltejs/kit/vite';
import type { UserConfig } from 'vite';
import { defineConfig } from "vite";
2023-01-19 18:05:09 +01:00
import UnoCSS from 'unocss/vite';
import presetIcons from '@unocss/preset-icons';
2023-01-23 04:14:11 +01:00
import presetWebFonts from '@unocss/preset-web-fonts'
2023-01-19 18:05:09 +01:00
2023-01-19 18:05:09 +01:00
const config: UserConfig = {
plugins: [sveltekit(), UnoCSS(),
/* Self note: Don't add a config between the (), it just overrides the external config. */
],
optimizeDeps: {
include: ["dayjs/plugin/relativeTime.js"],
},
2023-01-19 18:05:09 +01:00
};
export default config;