purgecss-webpack-plugin 4.1.2 → 4.1.3

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.
@@ -1,48 +1,48 @@
1
1
  import { Compilation, Compiler } from "webpack";
2
2
  type StringRegExpArray = Array<RegExp | string>;
3
3
  type ComplexSafelist = {
4
- standard?: StringRegExpArray;
5
- deep?: RegExp[];
6
- greedy?: RegExp[];
7
- variables?: StringRegExpArray;
8
- keyframes?: StringRegExpArray;
4
+ standard?: StringRegExpArray;
5
+ deep?: RegExp[];
6
+ greedy?: RegExp[];
7
+ variables?: StringRegExpArray;
8
+ keyframes?: StringRegExpArray;
9
9
  };
10
10
  type ExtractorFunction$0<T = string> = (content: T) => string[];
11
11
  interface Extractors$0 {
12
- extensions: string[];
13
- extractor: ExtractorFunction$0;
12
+ extensions: string[];
13
+ extractor: ExtractorFunction$0;
14
14
  }
15
15
  type PathFunction = () => string[];
16
16
  type SafelistFunction = () => ComplexSafelist;
17
17
  type BlocklistFunction = () => StringRegExpArray;
18
18
  interface UserDefinedOptions$0 {
19
- paths: string[] | PathFunction;
20
- defaultExtractor?: ExtractorFunction$0;
21
- extractors?: Array<Extractors$0>;
22
- fontFace?: boolean;
23
- keyframes?: boolean;
24
- moduleExtensions?: string[];
25
- output?: string;
26
- rejected?: boolean;
27
- stdin?: boolean;
28
- stdout?: boolean;
29
- variables?: boolean;
30
- verbose?: boolean;
31
- safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
32
- blocklist?: StringRegExpArray | BlocklistFunction;
33
- skippedContentGlobs?: Array<string>;
34
- dynamicAttributes?: string[];
35
- only?: string[];
19
+ paths: string[] | PathFunction;
20
+ defaultExtractor?: ExtractorFunction$0;
21
+ extractors?: Array<Extractors$0>;
22
+ fontFace?: boolean;
23
+ keyframes?: boolean;
24
+ moduleExtensions?: string[];
25
+ output?: string;
26
+ rejected?: boolean;
27
+ stdin?: boolean;
28
+ stdout?: boolean;
29
+ variables?: boolean;
30
+ verbose?: boolean;
31
+ safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
32
+ blocklist?: StringRegExpArray | BlocklistFunction;
33
+ skippedContentGlobs?: Array<string>;
34
+ dynamicAttributes?: string[];
35
+ only?: string[];
36
36
  }
37
37
  type PurgedStats = {
38
- [index: string]: string[];
38
+ [index: string]: string[];
39
39
  };
40
40
  declare class PurgeCSSPlugin {
41
- options: UserDefinedOptions$0;
42
- purgedStats: PurgedStats;
43
- constructor(options: UserDefinedOptions$0);
44
- apply(compiler: Compiler): void;
45
- initializePlugin(compilation: Compilation): void;
46
- runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
41
+ options: UserDefinedOptions$0;
42
+ purgedStats: PurgedStats;
43
+ constructor(options: UserDefinedOptions$0);
44
+ apply(compiler: Compiler): void;
45
+ initializePlugin(compilation: Compilation): void;
46
+ runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
47
47
  }
48
48
  export { PurgeCSSPlugin as default };
@@ -1,48 +1,48 @@
1
1
  import { Compilation, Compiler } from "webpack";
2
2
  type StringRegExpArray = Array<RegExp | string>;
3
3
  type ComplexSafelist = {
4
- standard?: StringRegExpArray;
5
- deep?: RegExp[];
6
- greedy?: RegExp[];
7
- variables?: StringRegExpArray;
8
- keyframes?: StringRegExpArray;
4
+ standard?: StringRegExpArray;
5
+ deep?: RegExp[];
6
+ greedy?: RegExp[];
7
+ variables?: StringRegExpArray;
8
+ keyframes?: StringRegExpArray;
9
9
  };
10
10
  type ExtractorFunction$0<T = string> = (content: T) => string[];
11
11
  interface Extractors$0 {
12
- extensions: string[];
13
- extractor: ExtractorFunction$0;
12
+ extensions: string[];
13
+ extractor: ExtractorFunction$0;
14
14
  }
15
15
  type PathFunction = () => string[];
16
16
  type SafelistFunction = () => ComplexSafelist;
17
17
  type BlocklistFunction = () => StringRegExpArray;
18
18
  interface UserDefinedOptions$0 {
19
- paths: string[] | PathFunction;
20
- defaultExtractor?: ExtractorFunction$0;
21
- extractors?: Array<Extractors$0>;
22
- fontFace?: boolean;
23
- keyframes?: boolean;
24
- moduleExtensions?: string[];
25
- output?: string;
26
- rejected?: boolean;
27
- stdin?: boolean;
28
- stdout?: boolean;
29
- variables?: boolean;
30
- verbose?: boolean;
31
- safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
32
- blocklist?: StringRegExpArray | BlocklistFunction;
33
- skippedContentGlobs?: Array<string>;
34
- dynamicAttributes?: string[];
35
- only?: string[];
19
+ paths: string[] | PathFunction;
20
+ defaultExtractor?: ExtractorFunction$0;
21
+ extractors?: Array<Extractors$0>;
22
+ fontFace?: boolean;
23
+ keyframes?: boolean;
24
+ moduleExtensions?: string[];
25
+ output?: string;
26
+ rejected?: boolean;
27
+ stdin?: boolean;
28
+ stdout?: boolean;
29
+ variables?: boolean;
30
+ verbose?: boolean;
31
+ safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
32
+ blocklist?: StringRegExpArray | BlocklistFunction;
33
+ skippedContentGlobs?: Array<string>;
34
+ dynamicAttributes?: string[];
35
+ only?: string[];
36
36
  }
37
37
  type PurgedStats = {
38
- [index: string]: string[];
38
+ [index: string]: string[];
39
39
  };
40
40
  declare class PurgeCSSPlugin {
41
- options: UserDefinedOptions$0;
42
- purgedStats: PurgedStats;
43
- constructor(options: UserDefinedOptions$0);
44
- apply(compiler: Compiler): void;
45
- initializePlugin(compilation: Compilation): void;
46
- runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
41
+ options: UserDefinedOptions$0;
42
+ purgedStats: PurgedStats;
43
+ constructor(options: UserDefinedOptions$0);
44
+ apply(compiler: Compiler): void;
45
+ initializePlugin(compilation: Compilation): void;
46
+ runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
47
47
  }
48
48
  export { PurgeCSSPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purgecss-webpack-plugin",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "PurgeCSS plugin for webpack - Remove unused css",
5
5
  "author": "Ffloriel",
6
6
  "homepage": "https://purgecss.com",
@@ -36,7 +36,7 @@
36
36
  "test": "echo \"Error: run tests from root\" && exit 1"
37
37
  },
38
38
  "dependencies": {
39
- "purgecss": "^4.1.2",
39
+ "purgecss": "^4.1.3",
40
40
  "webpack": "^5.4.0",
41
41
  "webpack-sources": "^3.2.0"
42
42
  },
@@ -55,5 +55,5 @@
55
55
  "access": "public",
56
56
  "registry": "https://registry.npmjs.org/"
57
57
  },
58
- "gitHead": "1329d96b0ad17e9b2b4d604d1a689856da176a59"
58
+ "gitHead": "37e5053a446880d12fd2f55abfc362c3dac9c49c"
59
59
  }