-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsvelte.config.js
34 lines (32 loc) · 893 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
/** @type {import('@sveltejs/kit').Config} */
//import adapter from '@sveltejs/adapter-static';
import adapter from '@sveltejs/adapter-netlify';
import { imagetools } from 'vite-imagetools';
import { mdsvex } from 'mdsvex';
import preprocess from 'svelte-preprocess';
const config = {
extensions: ['.svelte', '.md', '.svelte.md'],
preprocess: [
mdsvex({ extensions: ['.svelte.md', '.md', '.svx'] }),
preprocess({
scss: {
prependData: "@import 'src/lib/styles/variables.scss';",
},
}),
],
kit: {
adapter: adapter(),
files: {
hooks: 'src/hooks',
},
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: {
define: {
'process.env.VITE_BUILD_TIME': JSON.stringify(new Date().toISOString()),
},
plugins: [imagetools({ force: true })],
},
},
};
export default config;