36 lines
698 B
JavaScript
36 lines
698 B
JavaScript
|
import adapter from '@sveltejs/adapter-auto';
|
||
|
import preprocess from 'svelte-preprocess';
|
||
|
|
||
|
/** @type {import('@sveltejs/kit').Config} */
|
||
|
const config = {
|
||
|
// Consult https://github.com/sveltejs/svelte-preprocess
|
||
|
// for more information about preprocessors
|
||
|
preprocess: [preprocess({})],
|
||
|
|
||
|
kit: {
|
||
|
adapter: adapter(),
|
||
|
|
||
|
files: {
|
||
|
assets: 'static',
|
||
|
hooks: 'web_src/hooks',
|
||
|
lib: 'web_src/lib',
|
||
|
routes: 'web_src/routes',
|
||
|
serviceWorker: 'web_src/service-worker',
|
||
|
template: 'web_src/app.html'
|
||
|
},
|
||
|
|
||
|
// hydrate the <div id="svelte"> element in src/app.html
|
||
|
target: '#svelte',
|
||
|
|
||
|
vite: {
|
||
|
server: {
|
||
|
fs: {
|
||
|
allow: ['./web_src']
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default config;
|