You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/sites/svelte.dev/src/hooks.server.js

7 lines
211 B

/** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) {
return await resolve(event, {
preload: ({ type }) => type === 'js' || type === 'css' || type === 'font'
});
}