Skip to content

Commit

Permalink
feat: add dynamicAttributes option
Browse files Browse the repository at this point in the history
- add dynamicAttributes option to postcss plugin, rollup and webpack
  • Loading branch information
Ffloriel committed Mar 21, 2021
1 parent e8af506 commit 2f9cc65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/postcss-purgecss/src/types/index.ts
@@ -1,6 +1,6 @@
import {
UserDefinedSafelist,
StringRegExpArray,
UserDefinedSafelist,
} from "../../../purgecss/src/types/index";

export interface RawContent<T = string> {
Expand Down Expand Up @@ -31,4 +31,5 @@ export interface UserDefinedOptions {
safelist?: UserDefinedSafelist;
blocklist?: StringRegExpArray;
skippedContentGlobs?: Array<string>;
dynamicAttributes?: string[];
}
1 change: 1 addition & 0 deletions packages/purgecss-webpack-plugin/src/types/index.ts
Expand Up @@ -36,6 +36,7 @@ export interface UserDefinedOptions {
safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
blocklist?: StringRegExpArray | BlocklistFunction;
skippedContentGlobs?: Array<string>;
dynamicAttributes?: string[];
only?: string[];
}

Expand Down
1 change: 1 addition & 0 deletions packages/rollup-plugin-purgecss/src/types/index.ts
Expand Up @@ -33,6 +33,7 @@ export interface UserDefinedOptions {
safelist?: UserDefinedSafelist;
blocklist?: StringRegExpArray;
skippedContentGlobs?: Array<string>;
dynamicAttributes?: string[];

insert?: boolean;
include?: string | RegExp | (string | RegExp)[];
Expand Down

0 comments on commit 2f9cc65

Please sign in to comment.