cv-site/svelte.config.js

36 lines
786 B
JavaScript
Raw Normal View History

2021-10-02 14:29:49 +02:00
import preprocess from 'svelte-preprocess';
2021-10-04 18:24:20 +02:00
import adapter from '@sveltejs/adapter-static';
import {markdown} from 'svelte-preprocess-markdown';
import path from 'path';
2021-10-02 14:29:49 +02:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
2021-10-04 18:24:20 +02:00
preprocess: [preprocess({
sass: true,
typescript: true
}), markdown()],
2021-10-02 14:29:49 +02:00
kit: {
// hydrate the <div id="svelte"> element in src/app.html
2021-10-04 18:24:20 +02:00
target: '#svelte',
vite:{
resolve:{
alias:{
$elem: path.resolve('src/elements'),
// $model: path.resolve('src/model')
}
}
},
adapter: adapter({
// default options are shown
pages: 'build',
assets: 'build',
fallback: null
}),
2021-10-02 14:29:49 +02:00
}
};
export default config;