@tailwindcss-mangle/config 5.0.0 → 5.0.1

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 CHANGED
@@ -42,6 +42,12 @@ interface TailwindcssV4PatchConfig {
42
42
  css?: string;
43
43
  cssEntries?: string[];
44
44
  }
45
+ interface TailwindcssUserConfig {
46
+ version?: 2 | 3 | 4;
47
+ v2?: TailwindcssV2PatchConfig;
48
+ v3?: TailwindcssV3PatchConfig;
49
+ v4?: TailwindcssV4PatchConfig;
50
+ }
45
51
  interface PatchUserConfig {
46
52
  output?: {
47
53
  filename?: string;
@@ -51,11 +57,7 @@ interface PatchUserConfig {
51
57
  */
52
58
  removeUniversalSelector?: boolean;
53
59
  };
54
- tailwindcss?: {
55
- v2?: TailwindcssV2PatchConfig;
56
- v3?: TailwindcssV3PatchConfig;
57
- v4?: TailwindcssV4PatchConfig;
58
- };
60
+ tailwindcss?: TailwindcssUserConfig;
59
61
  }
60
62
  interface UserConfig {
61
63
  patch?: PatchUserConfig;
@@ -72,4 +74,4 @@ declare function getDefaultPatchConfig(): PatchUserConfig;
72
74
  declare function getDefaultMangleUserConfig(): MangleUserConfig;
73
75
  declare function getDefaultUserConfig(): UserConfig;
74
76
 
75
- export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type PatchUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
77
+ export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type PatchUserConfig, type TailwindcssUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
package/dist/index.d.ts CHANGED
@@ -42,6 +42,12 @@ interface TailwindcssV4PatchConfig {
42
42
  css?: string;
43
43
  cssEntries?: string[];
44
44
  }
45
+ interface TailwindcssUserConfig {
46
+ version?: 2 | 3 | 4;
47
+ v2?: TailwindcssV2PatchConfig;
48
+ v3?: TailwindcssV3PatchConfig;
49
+ v4?: TailwindcssV4PatchConfig;
50
+ }
45
51
  interface PatchUserConfig {
46
52
  output?: {
47
53
  filename?: string;
@@ -51,11 +57,7 @@ interface PatchUserConfig {
51
57
  */
52
58
  removeUniversalSelector?: boolean;
53
59
  };
54
- tailwindcss?: {
55
- v2?: TailwindcssV2PatchConfig;
56
- v3?: TailwindcssV3PatchConfig;
57
- v4?: TailwindcssV4PatchConfig;
58
- };
60
+ tailwindcss?: TailwindcssUserConfig;
59
61
  }
60
62
  interface UserConfig {
61
63
  patch?: PatchUserConfig;
@@ -72,4 +74,4 @@ declare function getDefaultPatchConfig(): PatchUserConfig;
72
74
  declare function getDefaultMangleUserConfig(): MangleUserConfig;
73
75
  declare function getDefaultUserConfig(): UserConfig;
74
76
 
75
- export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type PatchUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
77
+ export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type PatchUserConfig, type TailwindcssUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tailwindcss-mangle/config",
3
3
  "type": "module",
4
- "version": "5.0.0",
4
+ "version": "5.0.1",
5
5
  "description": "The config and load function of tailwindcss-mangle",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",