-
-
Notifications
You must be signed in to change notification settings - Fork 780
/
types.ts
51 lines (46 loc) · 1.45 KB
/
types.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { UserConfig } from '@unocss/core'
export interface VitePluginConfig<Theme extends {} = {}> extends UserConfig<Theme> {
/**
* Enable UnoCSS inspector
*
* @default true
*/
inspector?: boolean
/**
* CSS Generation mode
*
* - `global` - generate a single CSS sheet for entire App
* - `dist-chunk` - generate a CSS sheet for each code chunk on build, great for MPA
* - `per-module` - generate a CSS sheet for each module, can be scoped
* - `vue-scoped` - inject generated CSS to Vue SFC's `<style scoped>` for isolation
* - `svelte-scoped` - inject generated CSS to Svelte's `<style>` for isolation
* - `shadow-dom` - inject generated CSS to `Shadow DOM` css style block for each web component
*
* @default 'global'
*/
mode?: 'global' | 'per-module' | 'vue-scoped' | 'svelte-scoped' | 'dist-chunk' | 'shadow-dom'
/**
* Transform CSS for `@apply` directive
*
* @experimental
* @default false
*/
transformCSS?: boolean | 'pre' | 'post'
/**
* Make the generated css processed by postcss (https://vitejs.dev/guide/features.html#postcss)
*
* @default true
*/
postcss?: boolean
/**
* Use top level await in HMR code to avoid FOUC on dev time.
*
* You usually don't need to disable this, unless you are developing on
* a browser that does not support top level await.
*
* This will only affect on dev time.
*
* @default true
*/
hmrTopLevelAwait?: boolean
}