mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-08 11:02:50 +00:00
feat: version and issue url
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user