-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
38 lines (36 loc) · 1.03 KB
/
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
35
36
37
38
import preprocess from 'svelte-preprocess'
import { mdsvex } from 'mdsvex'
import { songPreprocessor } from './src/lib/songPreprocessor.js';
import adapter from '@sveltejs/adapter-cloudflare';
// eslint-disable-next-line no-unused-vars
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: [".svelte", ".svx", ".md"],
preprocess: [
preprocess({
sass: {
prependData: "@import './src/app.sass'",
includePaths: ['node_modules'],
},
}),
songPreprocessor(),
mdsvex({
extensions: ['.md', '.svx'],
})
],
// Remove vite-plugin-svelte warnings about unused CSS selectors
onwarn: (warning, handler) => {
const { code, frame } = warning;
if (code === 'css-unused-selector') return;
handler(warning);
},
kit: {
adapter: adapter({
routes: {
include: ['/*'],
exclufade: ['<all>']
}
})
}
};
export default config;