-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
37 lines (33 loc) · 899 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
35
36
37
import sequence from 'svelte-sequential-preprocessor';
import sveltePreprocess from 'svelte-preprocess';
import { mdsvex } from 'mdsvex';
import adapter from '@sveltejs/adapter-auto';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: sequence([
sveltePreprocess({
replace: [
[
'import.meta.env.VERCEL_ANALYTICS_ID',
JSON.stringify(process.env.VERCEL_ANALYTICS_ID),
],
],
scss: {
prependData: `@use 'src/styles/_variables.scss' as *;`,
},
}),
mdsvex({
layout: './src/lib/components/mdsvex/Layout.svelte',
}),
]),
extensions: ['.svelte', '.svx'],
kit: {
adapter: adapter(),
serviceWorker: {
register: false,
},
},
};
export default config;