2021-07-09 03:50:38 +00:00
|
|
|
import preprocess from 'svelte-preprocess';
|
2021-07-09 09:19:10 +00:00
|
|
|
import adapter from '@sveltejs/adapter-static';
|
2021-07-09 03:50:38 +00:00
|
|
|
import { windi } from 'svelte-windicss-preprocess';
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
2021-07-09 15:44:24 +00:00
|
|
|
// Consult https://github.com/sveltejs/svelte-preprocess
|
|
|
|
// for more information about preprocessors
|
|
|
|
preprocess: [windi(), preprocess({ postcss: false })],
|
2021-07-09 03:50:38 +00:00
|
|
|
|
2021-07-09 15:44:24 +00:00
|
|
|
kit: {
|
|
|
|
// hydrate the <div id="svelte"> element in src/app.html
|
|
|
|
target: '#svelte',
|
|
|
|
ssr: false,
|
|
|
|
trailingSlash: 'never',
|
|
|
|
adapter: adapter({
|
|
|
|
// default options are shown
|
|
|
|
pages: 'dist',
|
|
|
|
assets: 'dist',
|
|
|
|
fallback: '200.html',
|
|
|
|
}),
|
|
|
|
},
|
2021-07-09 03:50:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|