Files
Modrinth-plus/svelte.config.js

37 lines
832 B
JavaScript
Raw Normal View History

import { mdsvex } from 'mdsvex'
import mdsvexConfig from './mdsvex.config.js'
import adapter from '@sveltejs/adapter-static'
import path from 'path'
2022-07-16 16:15:06 -07:00
import { preprocess } from './src/config/svelte.js'
2022-03-07 21:55:31 -08:00
/** @type {import('@sveltejs/kit').Config} */
2022-06-24 22:26:49 -07:00
export default {
extensions: ['.svelte', ...mdsvexConfig.extensions],
2022-03-09 22:18:22 -08:00
preprocess: [preprocess, mdsvex(mdsvexConfig)],
2022-03-07 21:55:31 -08:00
kit: {
adapter: adapter(),
prerender: {
default: true,
onError: 'continue',
},
alias: {
$generated: path.resolve('./generated'),
omorphia: path.resolve('./src'),
['$stores/account']: path.resolve('./docs/dummyStore.ts'),
},
files: {
2022-06-17 19:58:01 -07:00
assets: 'docs/static',
hooks: 'docs/hooks',
lib: 'src',
params: 'docs/params',
routes: 'docs/routes',
serviceWorker: 'docs/service-worker',
template: 'docs/app.html',
},
},
}