forked from themesberg/flowbite-svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
32 lines (30 loc) · 916 Bytes
/
vite.config.ts
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
import { sveltekit } from '@sveltejs/kit/vite';
import path from 'path';
import examples from 'mdsvexamples/vite';
import pkg from './package.json' assert { type: 'json' };
import blocksPackage from './node_modules/flowbite-svelte-blocks/package.json' assert { type: 'json' };
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit(), examples],
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
},
build: {
chunkSizeWarningLimit: 1600
},
server: {
port: 8080,
strictPort: false
},
resolve: {
alias: {
'flowbite-svelte': path.resolve(process.cwd(), './src/lib/index.js'),
'flowbite-svelte-blocks': path.resolve(process.cwd(), './node_modules/flowbite-svelte-blocks/dist/index.js')
}
},
define: {
__VERSION__: JSON.stringify(pkg.version),
__BLOCKS_VERSION__: JSON.stringify(blocksPackage.version),
},
};
export default config;