@fullhuman/postcss-purgecss 2.1.2 → 2.2.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.
@@ -1,48 +1,32 @@
1
1
  import postcss from "postcss";
2
2
  interface RawContent {
3
- extension: string;
4
- raw: string;
3
+ extension: string;
4
+ raw: string;
5
5
  }
6
6
  interface RawCSS {
7
- raw: string;
7
+ raw: string;
8
8
  }
9
9
  type ExtractorFunction = (content: string) => string[];
10
10
  interface Extractors {
11
- extensions: string[];
12
- extractor: ExtractorFunction;
11
+ extensions: string[];
12
+ extractor: ExtractorFunction;
13
13
  }
14
14
  interface UserDefinedOptions {
15
- content?: Array<string | RawContent>;
16
- contentFunction?: (sourceFile: string) => Array<string | RawContent>;
17
- css: Array<string | RawCSS>;
18
- defaultExtractor?: ExtractorFunction;
19
- extractors?: Array<Extractors>;
20
- fontFace?: boolean;
21
- keyframes?: boolean;
22
- output?: string;
23
- rejected?: boolean;
24
- stdin?: boolean;
25
- stdout?: boolean;
26
- variables?: boolean;
27
- whitelist?: string[];
28
- whitelistPatterns?: Array<RegExp>;
29
- whitelistPatternsChildren?: Array<RegExp>;
15
+ content?: Array<string | RawContent>;
16
+ contentFunction?: (sourceFile: string) => Array<string | RawContent>;
17
+ css: Array<string | RawCSS>;
18
+ defaultExtractor?: ExtractorFunction;
19
+ extractors?: Array<Extractors>;
20
+ fontFace?: boolean;
21
+ keyframes?: boolean;
22
+ output?: string;
23
+ rejected?: boolean;
24
+ stdin?: boolean;
25
+ stdout?: boolean;
26
+ variables?: boolean;
27
+ whitelist?: string[];
28
+ whitelistPatterns?: Array<RegExp>;
29
+ whitelistPatternsChildren?: Array<RegExp>;
30
30
  }
31
- declare const purgeCSSPlugin: postcss.Plugin<Pick<
32
- UserDefinedOptions,
33
- | "keyframes"
34
- | "content"
35
- | "extractors"
36
- | "contentFunction"
37
- | "defaultExtractor"
38
- | "fontFace"
39
- | "output"
40
- | "rejected"
41
- | "stdin"
42
- | "stdout"
43
- | "variables"
44
- | "whitelist"
45
- | "whitelistPatterns"
46
- | "whitelistPatternsChildren"
47
- >>;
31
+ declare const purgeCSSPlugin: postcss.Plugin<Pick<UserDefinedOptions, "keyframes" | "content" | "extractors" | "contentFunction" | "defaultExtractor" | "fontFace" | "output" | "rejected" | "stdin" | "stdout" | "variables" | "whitelist" | "whitelistPatterns" | "whitelistPatternsChildren">>;
48
32
  export { purgeCSSPlugin as default };
@@ -1,48 +1,32 @@
1
1
  import postcss from "postcss";
2
2
  interface RawContent {
3
- extension: string;
4
- raw: string;
3
+ extension: string;
4
+ raw: string;
5
5
  }
6
6
  interface RawCSS {
7
- raw: string;
7
+ raw: string;
8
8
  }
9
9
  type ExtractorFunction = (content: string) => string[];
10
10
  interface Extractors {
11
- extensions: string[];
12
- extractor: ExtractorFunction;
11
+ extensions: string[];
12
+ extractor: ExtractorFunction;
13
13
  }
14
14
  interface UserDefinedOptions {
15
- content?: Array<string | RawContent>;
16
- contentFunction?: (sourceFile: string) => Array<string | RawContent>;
17
- css: Array<string | RawCSS>;
18
- defaultExtractor?: ExtractorFunction;
19
- extractors?: Array<Extractors>;
20
- fontFace?: boolean;
21
- keyframes?: boolean;
22
- output?: string;
23
- rejected?: boolean;
24
- stdin?: boolean;
25
- stdout?: boolean;
26
- variables?: boolean;
27
- whitelist?: string[];
28
- whitelistPatterns?: Array<RegExp>;
29
- whitelistPatternsChildren?: Array<RegExp>;
15
+ content?: Array<string | RawContent>;
16
+ contentFunction?: (sourceFile: string) => Array<string | RawContent>;
17
+ css: Array<string | RawCSS>;
18
+ defaultExtractor?: ExtractorFunction;
19
+ extractors?: Array<Extractors>;
20
+ fontFace?: boolean;
21
+ keyframes?: boolean;
22
+ output?: string;
23
+ rejected?: boolean;
24
+ stdin?: boolean;
25
+ stdout?: boolean;
26
+ variables?: boolean;
27
+ whitelist?: string[];
28
+ whitelistPatterns?: Array<RegExp>;
29
+ whitelistPatternsChildren?: Array<RegExp>;
30
30
  }
31
- declare const purgeCSSPlugin: postcss.Plugin<Pick<
32
- UserDefinedOptions,
33
- | "keyframes"
34
- | "content"
35
- | "extractors"
36
- | "contentFunction"
37
- | "defaultExtractor"
38
- | "fontFace"
39
- | "output"
40
- | "rejected"
41
- | "stdin"
42
- | "stdout"
43
- | "variables"
44
- | "whitelist"
45
- | "whitelistPatterns"
46
- | "whitelistPatternsChildren"
47
- >>;
31
+ declare const purgeCSSPlugin: postcss.Plugin<Pick<UserDefinedOptions, "keyframes" | "content" | "extractors" | "contentFunction" | "defaultExtractor" | "fontFace" | "output" | "rejected" | "stdin" | "stdout" | "variables" | "whitelist" | "whitelistPatterns" | "whitelistPatternsChildren">>;
48
32
  export { purgeCSSPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullhuman/postcss-purgecss",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "PostCSS plugin for PurgeCSS",
5
5
  "author": "FoundrySH <no-reply@foundry.sh>",
6
6
  "homepage": "https://github.com/FullHuman/purgecss#readme",
@@ -26,8 +26,8 @@
26
26
  "url": "https://github.com/FullHuman/purgecss/issues"
27
27
  },
28
28
  "dependencies": {
29
- "postcss": "7.0.27",
30
- "purgecss": "^2.1.2"
29
+ "postcss": "7.0.28",
30
+ "purgecss": "^2.2.0"
31
31
  },
32
- "gitHead": "98c2fa1e0efb894382395ea25a7aaa8562ab5ffe"
32
+ "gitHead": "e7a590b2e20be4de8f8b55a61554f550fe27f69f"
33
33
  }