mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 13:26:16 +00:00
26 lines
608 B
JavaScript
26 lines
608 B
JavaScript
import adapter from "@sveltejs/adapter-static";
|
|
import preprocess from "svelte-preprocess";
|
|
import autoprefixer from "autoprefixer";
|
|
import { readFile } from "fs/promises";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const { version } = JSON.parse(
|
|
await readFile(
|
|
fileURLToPath(new URL("package.json", import.meta.url)),
|
|
"utf8",
|
|
),
|
|
);
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
preprocess: [preprocess({ postcss: { plugins: autoprefixer() } })],
|
|
kit: {
|
|
adapter: adapter({ fallback: "404.html" }),
|
|
version: {
|
|
name: version,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|