Skip to content

Instantly share code, notes, and snippets.

@caesaneer
Created August 5, 2021 22:42
Show Gist options
  • Save caesaneer/a7d1ecc06b520b2a2f70e9e199092898 to your computer and use it in GitHub Desktop.
Save caesaneer/a7d1ecc06b520b2a2f70e9e199092898 to your computer and use it in GitHub Desktop.
Final svelte.config.js file
import preprocess from 'svelte-preprocess';
import adapter 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: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'app.html'
}),
ssr: false,
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
}
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment