feat: version and issue url

This commit is contained in:
2023-09-22 14:15:01 +02:00
parent 4cd9ce536d
commit f03b4d586b
7 changed files with 75 additions and 0 deletions

View File

@@ -1,12 +1,19 @@
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(),
version: {
name: version,
},
},
}