-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
50 lines (43 loc) · 1.04 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
39
40
41
42
43
44
45
46
47
48
49
50
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import precompileIntl from 'svelte-intl-precompile/sveltekit-plugin';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
// postcss: true,
scss: {
prependData: '@use "src/variables.scss" as *;',
},
}),
],
// https://www.npmjs.com/package/@sveltejs/adapter-static
kit: {
adapter: adapter({
// default options are shown
pages: 'build',
assets: 'build',
fallback: null,
precompress: false,
}),
prerender: {
// This can be false if you're using a fallback (i.e. SPA mode)
default: true,
},
vite: {
plugins: [
precompileIntl('locales'), // if your translations are defined in /locales/[lang].json
],
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "src/variables.scss" as *;',
},
},
},
},
},
};
export default config;