/* * @Author: yehuozhili * @Date: 2021-06-29 11:14:15 * @LastEditors: yehuozhili * @LastEditTime: 2021-07-09 01:50:59 * @FilePath: \dooringx\packages\dooringx-doc\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: '/dooringx', } : {}, trailingSlash: 'ignore', }, }; export default config;