-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsvelte.config.js
34 lines (31 loc) · 904 Bytes
/
svelte.config.js
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
import sveltePreprocess from "svelte-preprocess";
import mdsvexConfig from "./mdsvex.config.js";
import { mdsvex } from "mdsvex";
export default {
extensions: [".svelte", ...mdsvexConfig.extensions],
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
sveltePreprocess({
scss: {
api: "modern",
silenceDeprecations: [
"legacy-js-api",
"global-builtin",
"import",
"color-functions",
],
},
}),
mdsvex(mdsvexConfig),
],
onwarn: (warning, handler) => {
if (
warning.code.startsWith("a11y-") ||
warning.code === "css-unused-selector"
) {
return;
}
handler(warning);
},
};