forked from vite-pwa/sveltekit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
33 lines (28 loc) · 922 Bytes
/
types.ts
File metadata and controls
33 lines (28 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type { VitePWAOptions } from 'vite-plugin-pwa'
export interface KitOptions {
/**
* The base path for your application: by default will use the Vite base.
*
* @deprecated since ^0.1.0 version, the plugin has SvelteKit ^1.0.0 as peer dependency, Vite's base is now properly configured.
* @default '/'
* @see https://kit.svelte.dev/docs/configuration#paths
* */
base?: string
/**
* @default '.svelte-kit'
* @see https://kit.svelte.dev/docs/configuration#outdir
*/
outDir?: string
/**
* @see https://github.com/sveltejs/kit/tree/master/packages/adapter-static#fallback
*/
adapterFallback?: string
/**
* @default 'never'
* @see https://kit.svelte.dev/docs/configuration#trailingslash
* */
trailingSlash?: 'never' | 'always' | 'ignore'
}
export interface SvelteKitPWAOptions extends Partial<VitePWAOptions> {
kit?: KitOptions
}