-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
53 lines (47 loc) · 1.12 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
//import adapter from '@sveltejs/adapter-auto';
import path from "path";
//import adapter from '@sveltejs/adapter-netlify';
import adapterStatic from '@sveltejs/adapter-static';
import sveltePreprocess from 'svelte-preprocess';
import svg from "vite-plugin-svgstring";
// import { PassThrough } from "stream";
let base = "";
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: sveltePreprocess(),
kit: {
adapter: adapterStatic(),
prerender: {
default: true
},
files: {
assets: 'static',
lib: 'src/lib'
},
vite: {
resolve: {
alias: {
// $lib: path.resolve('./src/lib'),
$utils: path.resolve('./src/utils'),
$components: path.resolve('./src/components'),
$styles: path.resolve('./src/styles'),
$bulma: path.resolve('./node_modules/bulma'),
$data: path.resolve('./src/data'),
//$assets: path.resolve('./static/assets')
}
},
// server: {
// fs: {
// allow: ['static/assets/imgs',
// 'static/assets/audio']
// }
// },
plugins: [svg()]
},
paths: {
base: '',
assets: ''
}
}
};
export default config;