-
Notifications
You must be signed in to change notification settings - Fork 3
/
svelte.config.js
58 lines (54 loc) · 1.07 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
51
52
53
54
55
56
57
58
// import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess(),
kit: {
adapter: adapter({
pages: 'docs',
assets: 'docs'
}),
prerender: { default: true },
paths: {
// change below to your repo name
base: process.env.NODE_ENV === 'development' ? '' : '/ipfs-vite-svelte-kit'
},
// Override http methods in the Todo forms
methodOverride: {
allowed: ['PATCH', 'DELETE']
},
vite: {
resolve: {
alias: {
'@douganderson444/ipfs-vite-svelte-kit': path.resolve('src/lib')
}
},
server: {
fs: {
strict: false
}
},
build: {
rollupOptions: {
plugins: [],
output: {
minifyInternalExports: false,
compact: false,
sourcemap: true
}
},
minify: false,
sourcemap: true,
optimization: {
minimize: false
}
},
optimization: {
minimize: false
}
}
}
};
export default config;