aotds-docks/vite.config.js

23 lines
645 B
JavaScript
Raw Normal View History

2023-03-03 23:02:52 +00:00
// vite.config.js
import { sveltekit } from "@sveltejs/kit/vite";
2023-05-04 22:42:07 +00:00
import packageJson from "./package.json";
2023-05-11 14:11:55 +00:00
import getVersion from "git-repo-version";
import git from "git-describe";
2023-03-03 23:02:52 +00:00
/** @type {import('vite').UserConfig} */
const config = {
2023-05-09 16:06:39 +00:00
plugins: [sveltekit()],
// publicDir: "./static",
ssr: {},
optimizeDeps: {},
define: {
2023-05-11 16:56:04 +00:00
"import.meta.env.PACKAGE_VERSION": JSON.stringify(
git.gitDescribeSync().semverString
),
2023-05-09 16:06:39 +00:00
"import.meta.env.HOMEPAGE": JSON.stringify(packageJson.homepage),
2023-05-09 16:29:37 +00:00
"import.meta.env.BUGS": JSON.stringify(packageJson.bugs.url),
2023-05-09 16:06:39 +00:00
},
2023-03-03 23:02:52 +00:00
};
export default config;