forked from temporalio/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
46 lines (45 loc) · 1.22 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { sveltekit } from '@sveltejs/kit/vite';
import { HstSvelte } from '@histoire/plugin-svelte';
import { defaultColors } from 'histoire';
import path from 'path';
/** @type {import('vite').UserConfig} */
export default {
plugins: [sveltekit()],
histoire: {
plugins: [HstSvelte()],
setupFile: './src/histoire.setup.ts',
storyIgnored: ['node_modules/**', 'dist/**', 'package/**', '.vercel/**'],
theme: {
title: 'Holocene',
favicon: './src/lib/vendor/favicon.ico',
logo: {
square: './src/lib/vendor/logo-dark.svg',
dark: './src/lib/vendor/logo.svg',
light: './src/lib/vendor/logo-dark.svg',
},
logoHref: 'https://temporal.io',
colors: {
gray: defaultColors.gray,
primary: defaultColors.blue,
},
},
vite: {
publicDir: './src/lib/vendor/',
resolve: {
alias: {
$lib: path.resolve('./src/lib'),
$app: path.resolve('./src/lib/svelte-mocks/app'),
},
},
},
},
optimizeDeps: {
include: ['date-fns', 'date-fns-tz', 'websocket-as-promised'],
},
resolve: {
alias: {
$types: path.resolve('./src/types'),
$fixtures: path.resolve('./src/fixtures'),
},
},
};