aotds-docks/vite.config.js

18 lines
439 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-03-03 23:02:52 +00:00
/** @type {import('vite').UserConfig} */
const config = {
2023-05-04 22:42:07 +00:00
plugins: [sveltekit()],
publicDir: "./static",
ssr: {},
optimizeDeps: {},
define: {
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
"import.meta.env.HOMEPAGE": JSON.stringify(packageJson.homepage),
},
2023-03-03 23:02:52 +00:00
};
export default config;