-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
52 lines (47 loc) · 1.08 KB
/
svelte.config.js
File metadata and controls
52 lines (47 loc) · 1.08 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import adapter from "@sveltejs/adapter-static";
import { sveltePreprocess } from "svelte-preprocess";
const config = {
kit: {
adapter: adapter({
pages: "build",
assets: "build",
fallback: "404.html",
precompress: false,
strict: true,
}),
alias: {
"#src": "./src/",
"#routes": "./src/routes/",
"#parts": "./src/parts/",
"#styles": "./src/styles/",
"#scripts": "./src/scripts/",
"#sup": "./src/routes/(sup)/sup",
},
prerender: {
handleHttpError: "warn",
handleMissingId: "warn",
entries: [
"/",
"/assort",
"/sup",
"/sup/sup",
],
},
},
preprocess: [
sveltePreprocess({
scss: {
prependData: `
@use './src/styles/globals' as *;
@use './src/styles/mixins' as *;
@use './src/styles/fonts' as *;
`
},
})
],
onwarn: (warning, handler) => {
if (warning.code === "css_unused_selector" && warning.message.includes(".intersected")) return;
handler(warning);
},
};
export default config;