-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
35 lines (33 loc) · 847 Bytes
/
Copy pathsvelte.config.js
File metadata and controls
35 lines (33 loc) · 847 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
import preprocess from "svelte-preprocess";
import adapter from "@sveltejs/adapter-static";
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: [".svelte"],
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true,
}),
],
kit: {
// By default, `npm run build` will create a standard Node app.
// You can create optimized builds for different platforms by
// specifying a different adapter
adapter: adapter({
fallback: "index.html",
}),
prerender: {
enabled: false,
},
ssr: false,
// hydrate the <div id="svelte"> element in src/app.html
target: "#svelte",
vite: {
ssr: {
noExternal: ["dayjs"],
},
},
},
};
export default config;