midou36o.github.io/vite.config.ts
Midou36O 30e733d375
Some checks are pending
Svelte Website guild. / Building the website (push) Waiting to run
Move to node, update all dependencies, fix unocss, add a dockerfile and
a CI builder for gitea.
2023-12-29 20:13:37 +01:00

26 lines
581 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite';
import type { UserConfig } from 'vite';
//import { defineConfig } from 'vite';
import UnoCSS from 'unocss/vite';
//import presetIcons from '@unocss/preset-icons';
//import presetWebFonts from '@unocss/preset-web-fonts';
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']
},
server: {
port: 3000
},
preview: {
port: 3020
}
};
export default config;