File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
packages/unplugin-tailwindcss-mangle/src Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ export default defineConfig({
13
13
return defaultMangleClassFilter ( className )
14
14
} ,
15
15
classSetOutput : true ,
16
- classMapOutput : true
16
+ classMapOutput : true ,
17
+ jsHandlerOptions : {
18
+ minified : true
19
+ }
17
20
} )
18
21
]
19
22
} )
Original file line number Diff line number Diff line change 1
1
import type {
2
- ClassGenerator ,
2
+ IHandlerOptions ,
3
3
IHtmlHandlerOptions , // as InternalHtmlHandlerOptions,
4
4
IJsHandlerOptions , // as InternalJsHandlerOptions,
5
5
ICssHandlerOptions // as InternalCssHandlerOptions
@@ -15,11 +15,6 @@ export interface IClassGeneratorOptions {
15
15
classPrefix ?: string
16
16
}
17
17
18
- export interface IHandlerOptions {
19
- runtimeSet : Set < string >
20
- classGenerator : ClassGenerator
21
- }
22
-
23
18
export interface ClassSetOutputOptions {
24
19
filename : string
25
20
dir ?: string
@@ -30,14 +25,17 @@ export interface ClassMapOutputOptions {
30
25
filename : string
31
26
dir ?: string
32
27
}
28
+
29
+ export type PartialHandlerOptions < T extends IHandlerOptions > = Partial < Omit < T , 'runtimeSet' | 'classGenerator' > >
30
+
33
31
export interface Options {
34
32
mangleClassFilter ?: ( className : string ) => boolean
35
33
classGenerator ?: IClassGeneratorOptions
36
34
exclude ?: string [ ]
37
35
include ?: string [ ]
38
36
classSetOutput ?: boolean | ClassSetOutputOptions
39
37
classMapOutput ?: boolean | ClassMapOutputOptions
40
- htmlHandlerOptions ?: IHtmlHandlerOptions
41
- jsHandlerOptions ?: IJsHandlerOptions
42
- cssHandlerOptions ?: ICssHandlerOptions
38
+ htmlHandlerOptions ?: PartialHandlerOptions < IHtmlHandlerOptions >
39
+ jsHandlerOptions ?: PartialHandlerOptions < IJsHandlerOptions >
40
+ cssHandlerOptions ?: PartialHandlerOptions < ICssHandlerOptions >
43
41
}
You can’t perform that action at this time.
0 commit comments