/* * @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
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;