Files
dooring/packages/dooringx-doc/svelte.config.js

33 lines
761 B
JavaScript
Raw Normal View History

2021-07-09 01:41:03 +08:00
/*
* @Author: yehuozhili
* @Date: 2021-06-29 11:14:15
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-08 11:29:23
* @FilePath: \my-app\svelte.config.js
*/
import preprocess from 'svelte-preprocess';
import staticAdapter from '@sveltejs/adapter-static';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
adapter: staticAdapter({
pages: 'build',
assets: 'build',
}),
paths: process.env.DEPLOY
? {
base: '/svelte-kit-markdown',
}
: {},
trailingSlash: 'ignore',
},
};
export default config;