-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsvelte.config.js
More file actions
36 lines (33 loc) · 852 Bytes
/
svelte.config.js
File metadata and controls
36 lines (33 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import adapter from "@sveltejs/adapter-static";
import autoprefixer from "autoprefixer";
import { readFile } from "fs/promises";
import { fileURLToPath } from "url";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import { sequence } from "@melt-ui/pp";
import { preprocessMeltUI } from "@melt-ui/pp";
const { version } = JSON.parse(
await readFile(
fileURLToPath(new URL("package.json", import.meta.url)),
"utf8",
),
);
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: sequence([
vitePreprocess({ postcss: { plugins: autoprefixer() } }),
preprocessMeltUI(),
]),
compilerOptions: {
runes: true,
},
kit: {
adapter: adapter({ fallback: "404.html" }),
alias: {
$i18n: "./src/i18n",
},
version: {
name: version,
},
},
};
export default config;