2023-01-19 18:05:09 +01:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
|
|
import type { UserConfig } from 'vite';
|
2023-01-26 02:11:05 +01:00
|
|
|
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-26 02:11:05 +01:00
|
|
|
|
|
|
|
|
2023-01-19 18:05:09 +01:00
|
|
|
const config: UserConfig = {
|
2023-01-22 15:08:14 +01:00
|
|
|
plugins: [sveltekit(), UnoCSS(),
|
|
|
|
/* Self note: Don't add a config between the (), it just overrides the external config. */
|
2023-01-26 02:11:05 +01:00
|
|
|
],
|
|
|
|
optimizeDeps: {
|
|
|
|
include: ["dayjs/plugin/relativeTime.js"],
|
|
|
|
},
|
2023-01-19 18:05:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|