-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
39 lines (35 loc) · 947 Bytes
/
svelte.config.js
File metadata and controls
39 lines (35 loc) · 947 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
37
38
39
import adapter from '@sveltejs/adapter-static';
import { mdsvex } from 'mdsvex';
import { sveltePreprocess } from 'svelte-preprocess';
import mdsvexConfig from './mdsvex.config.js';
import { preprocessor as documentPreprocessor } from '@sveltekit-addons/document'
/** @type {import('./$types').Config} */
const config = {
compilerOptions: {
dev: true
},
extensions: ['.svelte', ...mdsvexConfig.extensions],
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
sveltePreprocess({
postcss: true,
preserve: ['ld+json'],
typescript: {
compilerOptions: {
verbatimModuleSyntax: true
}
}
}),
mdsvex(mdsvexConfig),
documentPreprocessor(), // this needs to be last
],
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
}),
}
};
export default config;