-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
24 lines (23 loc) · 1.06 KB
/
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
import { sveltekit } from "@sveltejs/kit/vite";
import { enhancedImages } from "@sveltejs/enhanced-img";
import { defineConfig } from "vite";
import pkg from "./package.json" with { type: "json" };
import sveltePackage from "./node_modules/svelte/package.json" with { type: "json" };
import svelteKitPackage from "./node_modules/@sveltejs/kit/package.json" with { type: "json" };
import vitePackage from "./node_modules/vite/package.json" with { type: "json" };
import tailwindcssPackage from "./node_modules/tailwindcss/package.json" with { type: "json" };
export default defineConfig({
plugins: [enhancedImages(), sveltekit()],
build: {
minify: false
},
define: {
__NAME__: JSON.stringify(pkg.name),
__VERSION__: JSON.stringify(pkg.version),
__GITHUBURL__: JSON.stringify(pkg.repository.url),
__SVELTEVERSION__: JSON.stringify(sveltePackage.version),
__SVELTEKITVERSION__: JSON.stringify(svelteKitPackage.version),
__VITEVERSION__: JSON.stringify(vitePackage.version),
__TAILWINDCSSVERSION__: JSON.stringify(tailwindcssPackage.version)
}
});