Skip to content

Commit

Permalink
docs: add new options dynamicAttributes and skippedContentGlobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ffloriel committed Mar 21, 2021
1 parent ff1c558 commit e8af506
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/configuration.md
Expand Up @@ -323,3 +323,20 @@ Blocklist will block the CSS selectors from appearing in the final output CSS. T
blocklist: ['usedClass', /^nav-/]
```
Even if nav-links and usedClass are found by an extractor, they will be removed.

- **skippedContentGlobs**

If you provide globs for the `content` parameter, you can use this option to exclude certain files or folders that would otherwise be scanned. Pass an array of globs matching items that should be excluded. (Note: this option has no effect if `content` is not globs.)

```ts
skippedContentGlobs: ['node_modules/**', 'components/**']
```
Here, PurgeCSS will not scan anything in the "node_modules" and "components" folders.

- **dynamicAttributes**

Option to add custom CSS attribute selectors like "aria-selected", "data-selected", ...etc.

```ts
dynamicAttributes: ["aria-selected"]
```

0 comments on commit e8af506

Please sign in to comment.