forked from finale-lua/jw-lua-scripts-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
34 lines (33 loc) · 839 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
import adapter from '@sveltejs/adapter-vercel'
import sveltePreprocess from 'svelte-preprocess'
import { imagetools } from 'vite-imagetools'
import imagePreprocess from './image-preprocess.cjs'
export default {
preprocess: [
sveltePreprocess({
postcss: true,
defaults: {
style: 'postcss',
},
}),
imagePreprocess(),
],
kit: {
adapter: adapter(),
target: '#svelte',
files: {
assets: 'static',
hooks: 'src/hooks',
lib: 'src/lib',
routes: 'src/routes',
serviceWorker: 'src/service-worker',
template: 'src/app.html',
},
prerender: {
pages: ['*'],
},
vite: {
plugins: [imagetools()],
},
},
}