-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvite.config.ts
33 lines (31 loc) · 964 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
33
import { sveltekit } from "@sveltejs/kit/vite";
import examples from "mdsvexamples/vite";
import path from "path";
import pkg from "./package.json" with { type: "json" };
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
/** @type {import('vite').UserConfig} */
export default defineConfig({
plugins: [sveltekit(), tailwindcss(), 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.ts"),
"flowbite-svelte-next": path.resolve(process.cwd(), "./src/lib/index.ts"),
"flowbite-svelte-blocks": path.resolve(process.cwd(), "./node_modules/flowbite-svelte-blocks/dist/index.js")
}
},
define: {
__NAME__: JSON.stringify(pkg.name),
__VERSION__: JSON.stringify(pkg.version)
}
});