jokes-bapak2/client/svelte.config.js

37 lines
858 B
JavaScript

import preprocess from 'svelte-preprocess';
import adapter from '@sveltejs/adapter-static';
import { windi } from 'svelte-windicss-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
windi({
configPath: './windi.config.js',
}),
preprocess({ postcss: false }),
],
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
ssr: false,
trailingSlash: 'never',
files: {
routes: './src/routes',
assets: './static',
hooks: './src',
lib: './src/lib',
},
adapter: adapter({
// default options are shown
pages: 'dist',
assets: 'dist',
fallback: '200.html',
}),
},
};
export default config;