2023-01-19 22:35:09 +05:30
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
|
|
import type { UserConfig } from 'vite';
|
2023-12-29 20:44:25 +05:30
|
|
|
//import { defineConfig } from 'vite';
|
2023-01-19 22:35:09 +05:30
|
|
|
import UnoCSS from 'unocss/vite';
|
2023-12-29 20:44:25 +05:30
|
|
|
//import presetIcons from '@unocss/preset-icons';
|
|
|
|
//import presetWebFonts from '@unocss/preset-web-fonts';
|
2023-01-26 06:41:05 +05:30
|
|
|
|
2023-01-19 22:35:09 +05:30
|
|
|
const config: UserConfig = {
|
2023-12-29 20:44:25 +05:30
|
|
|
plugins: [
|
|
|
|
sveltekit(),
|
|
|
|
UnoCSS()
|
2023-01-22 19:38:14 +05:30
|
|
|
/* Self note: Don't add a config between the (), it just overrides the external config. */
|
2023-12-29 20:44:25 +05:30
|
|
|
],
|
2023-01-26 06:41:05 +05:30
|
|
|
optimizeDeps: {
|
2023-12-29 20:44:25 +05:30
|
|
|
include: ['dayjs/plugin/relativeTime.js']
|
2023-12-30 00:43:37 +05:30
|
|
|
},
|
|
|
|
server: {
|
|
|
|
port: 3000
|
|
|
|
},
|
|
|
|
preview: {
|
|
|
|
port: 3020
|
2023-12-29 20:44:25 +05:30
|
|
|
}
|
2023-01-19 22:35:09 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|