@fullhuman/postcss-purgecss 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.
- package/lib/postcss-purgecss.d.ts +24 -24
- package/lib/postcss-purgecss.esm.d.ts +24 -24
- package/package.json +3 -3
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import * as postcss from "postcss";
|
|
2
2
|
type StringRegExpArray = Array<RegExp | string>;
|
|
3
3
|
type ComplexSafelist = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
standard?: StringRegExpArray;
|
|
5
|
+
deep?: RegExp[];
|
|
6
|
+
greedy?: RegExp[];
|
|
7
|
+
variables?: StringRegExpArray;
|
|
8
|
+
keyframes?: StringRegExpArray;
|
|
9
9
|
};
|
|
10
10
|
type UserDefinedSafelist = StringRegExpArray | ComplexSafelist;
|
|
11
11
|
interface RawContent$0<T = string> {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
extension: string;
|
|
13
|
+
raw: T;
|
|
14
14
|
}
|
|
15
15
|
type ExtractorFunction$0<T = string> = (content: T) => string[];
|
|
16
16
|
interface Extractors$0 {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
extensions: string[];
|
|
18
|
+
extractor: ExtractorFunction$0;
|
|
19
19
|
}
|
|
20
20
|
interface UserDefinedOptions$0 {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
content?: Array<string | RawContent$0>;
|
|
22
|
+
contentFunction?: (sourceFile: string) => Array<string | RawContent$0>;
|
|
23
|
+
defaultExtractor?: ExtractorFunction$0;
|
|
24
|
+
extractors?: Array<Extractors$0>;
|
|
25
|
+
fontFace?: boolean;
|
|
26
|
+
keyframes?: boolean;
|
|
27
|
+
output?: string;
|
|
28
|
+
rejected?: boolean;
|
|
29
|
+
stdin?: boolean;
|
|
30
|
+
stdout?: boolean;
|
|
31
|
+
variables?: boolean;
|
|
32
|
+
safelist?: UserDefinedSafelist;
|
|
33
|
+
blocklist?: StringRegExpArray;
|
|
34
|
+
skippedContentGlobs?: Array<string>;
|
|
35
|
+
dynamicAttributes?: string[];
|
|
36
36
|
}
|
|
37
37
|
declare const purgeCSSPlugin: postcss.PluginCreator<UserDefinedOptions$0>;
|
|
38
38
|
export { purgeCSSPlugin as default };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import * as postcss from "postcss";
|
|
2
2
|
type StringRegExpArray = Array<RegExp | string>;
|
|
3
3
|
type ComplexSafelist = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
standard?: StringRegExpArray;
|
|
5
|
+
deep?: RegExp[];
|
|
6
|
+
greedy?: RegExp[];
|
|
7
|
+
variables?: StringRegExpArray;
|
|
8
|
+
keyframes?: StringRegExpArray;
|
|
9
9
|
};
|
|
10
10
|
type UserDefinedSafelist = StringRegExpArray | ComplexSafelist;
|
|
11
11
|
interface RawContent$0<T = string> {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
extension: string;
|
|
13
|
+
raw: T;
|
|
14
14
|
}
|
|
15
15
|
type ExtractorFunction$0<T = string> = (content: T) => string[];
|
|
16
16
|
interface Extractors$0 {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
extensions: string[];
|
|
18
|
+
extractor: ExtractorFunction$0;
|
|
19
19
|
}
|
|
20
20
|
interface UserDefinedOptions$0 {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
content?: Array<string | RawContent$0>;
|
|
22
|
+
contentFunction?: (sourceFile: string) => Array<string | RawContent$0>;
|
|
23
|
+
defaultExtractor?: ExtractorFunction$0;
|
|
24
|
+
extractors?: Array<Extractors$0>;
|
|
25
|
+
fontFace?: boolean;
|
|
26
|
+
keyframes?: boolean;
|
|
27
|
+
output?: string;
|
|
28
|
+
rejected?: boolean;
|
|
29
|
+
stdin?: boolean;
|
|
30
|
+
stdout?: boolean;
|
|
31
|
+
variables?: boolean;
|
|
32
|
+
safelist?: UserDefinedSafelist;
|
|
33
|
+
blocklist?: StringRegExpArray;
|
|
34
|
+
skippedContentGlobs?: Array<string>;
|
|
35
|
+
dynamicAttributes?: string[];
|
|
36
36
|
}
|
|
37
37
|
declare const purgeCSSPlugin: postcss.PluginCreator<UserDefinedOptions$0>;
|
|
38
38
|
export { purgeCSSPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullhuman/postcss-purgecss",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "PostCSS plugin for PurgeCSS",
|
|
5
5
|
"author": "FoundrySH <no-reply@foundry.sh>",
|
|
6
6
|
"homepage": "https://purgecss.com",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://github.com/FullHuman/purgecss/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"purgecss": "^4.1.
|
|
29
|
+
"purgecss": "^4.1.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"postcss": "^8.3.0"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"access": "public",
|
|
39
39
|
"registry": "https://registry.npmjs.org/"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "37e5053a446880d12fd2f55abfc362c3dac9c49c"
|
|
42
42
|
}
|