2021-07-09 03:50:38 +00:00
|
|
|
import preprocess from 'svelte-preprocess';
|
2022-09-10 06:51:25 +00:00
|
|
|
import adapter from '@sveltejs/adapter-node';
|
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
|
2021-07-15 09:39:59 +00:00
|
|
|
preprocess: [
|
|
|
|
windi({
|
2022-03-31 15:03:32 +00:00
|
|
|
configPath: './windi.config.ts',
|
|
|
|
preflights: false,
|
2021-07-15 09:40:34 +00:00
|
|
|
}),
|
|
|
|
preprocess({ postcss: false }),
|
2021-07-15 09:39:59 +00:00
|
|
|
],
|
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
|
|
|
|
trailingSlash: 'never',
|
2021-07-15 09:39:59 +00:00
|
|
|
files: {
|
|
|
|
routes: './src/routes',
|
|
|
|
assets: './static',
|
2022-09-10 06:51:25 +00:00
|
|
|
hooks: {
|
|
|
|
server: './src',
|
|
|
|
client: './src'
|
|
|
|
},
|
2021-07-15 09:40:34 +00:00
|
|
|
lib: './src/lib',
|
2021-07-15 09:39:59 +00:00
|
|
|
},
|
2021-07-09 15:44:24 +00:00
|
|
|
adapter: adapter({
|
2022-09-10 06:51:25 +00:00
|
|
|
out: "dist"
|
2021-07-09 15:44:24 +00:00
|
|
|
}),
|
|
|
|
},
|
2021-07-09 03:50:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|