@tailwindcss-mangle/config 7.0.0-alpha.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +12 -8
- package/dist/index.d.ts +12 -8
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -35,11 +35,15 @@ interface TransformerOptions {
|
|
|
35
35
|
registry?: TransformerRegistryOptions;
|
|
36
36
|
preserve?: TransformerPreserveOptions;
|
|
37
37
|
}
|
|
38
|
-
interface
|
|
38
|
+
interface TailwindRuntimeOptionsBase {
|
|
39
39
|
cwd?: string;
|
|
40
40
|
config?: string;
|
|
41
41
|
}
|
|
42
|
-
interface
|
|
42
|
+
interface TailwindV2Options extends TailwindRuntimeOptionsBase {
|
|
43
|
+
}
|
|
44
|
+
interface TailwindV3Options extends TailwindRuntimeOptionsBase {
|
|
45
|
+
}
|
|
46
|
+
interface TailwindV4Options {
|
|
43
47
|
sources?: SourceEntry[];
|
|
44
48
|
base?: string;
|
|
45
49
|
css?: string;
|
|
@@ -76,19 +80,19 @@ interface RegistryCacheOptions {
|
|
|
76
80
|
strategy?: 'merge' | 'overwrite';
|
|
77
81
|
driver?: 'file' | 'memory' | 'noop';
|
|
78
82
|
}
|
|
79
|
-
interface
|
|
83
|
+
interface TailwindCssOptions {
|
|
80
84
|
version?: 2 | 3 | 4;
|
|
81
85
|
packageName?: string;
|
|
82
86
|
resolve?: PackageResolvingOptions;
|
|
83
|
-
v2?:
|
|
84
|
-
v3?:
|
|
85
|
-
v4?:
|
|
87
|
+
v2?: TailwindV2Options;
|
|
88
|
+
v3?: TailwindV3Options;
|
|
89
|
+
v4?: TailwindV4Options;
|
|
86
90
|
cwd?: string;
|
|
87
91
|
config?: string;
|
|
88
92
|
}
|
|
89
93
|
interface RegistryOptions {
|
|
90
94
|
projectRoot?: string;
|
|
91
|
-
tailwindcss?:
|
|
95
|
+
tailwindcss?: TailwindCssOptions;
|
|
92
96
|
apply?: RegistryApplyOptions;
|
|
93
97
|
extract?: RegistryExtractOptions;
|
|
94
98
|
cache?: RegistryCacheOptions;
|
|
@@ -111,4 +115,4 @@ declare function getDefaultRegistryConfig(): RegistryOptions;
|
|
|
111
115
|
declare function getDefaultTransformerConfig(): TransformerOptions;
|
|
112
116
|
declare function getDefaultUserConfig(): TailwindcssMangleConfig;
|
|
113
117
|
|
|
114
|
-
export { CONFIG_NAME, type RegistryApplyOptions, type RegistryCacheOptions, type RegistryExposeContextOptions, type RegistryExtendLengthUnitsOptions, type RegistryExtractOptions, type RegistryOptions, type
|
|
118
|
+
export { CONFIG_NAME, type RegistryApplyOptions, type RegistryCacheOptions, type RegistryExposeContextOptions, type RegistryExtendLengthUnitsOptions, type RegistryExtractOptions, type RegistryOptions, type TailwindCssOptions, type TailwindV2Options, type TailwindV3Options, type TailwindV4Options, type TailwindcssMangleConfig, type TransformerMappingConfig, type TransformerMappingEntry, type TransformerMappingOption, type TransformerOptions, type TransformerPreserveOptions, type TransformerRegistryOptions, type TransformerSourceOptions, type UserConfig, defineConfig, getConfig, getDefaultRegistryConfig, getDefaultTransformerConfig, getDefaultUserConfig, initConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -35,11 +35,15 @@ interface TransformerOptions {
|
|
|
35
35
|
registry?: TransformerRegistryOptions;
|
|
36
36
|
preserve?: TransformerPreserveOptions;
|
|
37
37
|
}
|
|
38
|
-
interface
|
|
38
|
+
interface TailwindRuntimeOptionsBase {
|
|
39
39
|
cwd?: string;
|
|
40
40
|
config?: string;
|
|
41
41
|
}
|
|
42
|
-
interface
|
|
42
|
+
interface TailwindV2Options extends TailwindRuntimeOptionsBase {
|
|
43
|
+
}
|
|
44
|
+
interface TailwindV3Options extends TailwindRuntimeOptionsBase {
|
|
45
|
+
}
|
|
46
|
+
interface TailwindV4Options {
|
|
43
47
|
sources?: SourceEntry[];
|
|
44
48
|
base?: string;
|
|
45
49
|
css?: string;
|
|
@@ -76,19 +80,19 @@ interface RegistryCacheOptions {
|
|
|
76
80
|
strategy?: 'merge' | 'overwrite';
|
|
77
81
|
driver?: 'file' | 'memory' | 'noop';
|
|
78
82
|
}
|
|
79
|
-
interface
|
|
83
|
+
interface TailwindCssOptions {
|
|
80
84
|
version?: 2 | 3 | 4;
|
|
81
85
|
packageName?: string;
|
|
82
86
|
resolve?: PackageResolvingOptions;
|
|
83
|
-
v2?:
|
|
84
|
-
v3?:
|
|
85
|
-
v4?:
|
|
87
|
+
v2?: TailwindV2Options;
|
|
88
|
+
v3?: TailwindV3Options;
|
|
89
|
+
v4?: TailwindV4Options;
|
|
86
90
|
cwd?: string;
|
|
87
91
|
config?: string;
|
|
88
92
|
}
|
|
89
93
|
interface RegistryOptions {
|
|
90
94
|
projectRoot?: string;
|
|
91
|
-
tailwindcss?:
|
|
95
|
+
tailwindcss?: TailwindCssOptions;
|
|
92
96
|
apply?: RegistryApplyOptions;
|
|
93
97
|
extract?: RegistryExtractOptions;
|
|
94
98
|
cache?: RegistryCacheOptions;
|
|
@@ -111,4 +115,4 @@ declare function getDefaultRegistryConfig(): RegistryOptions;
|
|
|
111
115
|
declare function getDefaultTransformerConfig(): TransformerOptions;
|
|
112
116
|
declare function getDefaultUserConfig(): TailwindcssMangleConfig;
|
|
113
117
|
|
|
114
|
-
export { CONFIG_NAME, type RegistryApplyOptions, type RegistryCacheOptions, type RegistryExposeContextOptions, type RegistryExtendLengthUnitsOptions, type RegistryExtractOptions, type RegistryOptions, type
|
|
118
|
+
export { CONFIG_NAME, type RegistryApplyOptions, type RegistryCacheOptions, type RegistryExposeContextOptions, type RegistryExtendLengthUnitsOptions, type RegistryExtractOptions, type RegistryOptions, type TailwindCssOptions, type TailwindV2Options, type TailwindV3Options, type TailwindV4Options, type TailwindcssMangleConfig, type TransformerMappingConfig, type TransformerMappingEntry, type TransformerMappingOption, type TransformerOptions, type TransformerPreserveOptions, type TransformerRegistryOptions, type TransformerSourceOptions, type UserConfig, defineConfig, getConfig, getDefaultRegistryConfig, getDefaultTransformerConfig, getDefaultUserConfig, initConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss-mangle/config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"description": "The config and load function of tailwindcss-mangle",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"fs-extra": "^11.3.4",
|
|
54
54
|
"is-css-request": "^1.0.1",
|
|
55
55
|
"pathe": "^2.0.3",
|
|
56
|
-
"@tailwindcss-mangle/shared": "^4.1.4
|
|
56
|
+
"@tailwindcss-mangle/shared": "^4.1.4"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "tsup --watch --sourcemap",
|