From e8af5069f4c70ee273c85c7f0aa39532258a8b41 Mon Sep 17 00:00:00 2001 From: Ffloriel Date: Sun, 21 Mar 2021 21:42:44 +0000 Subject: [PATCH] docs: add new options dynamicAttributes and skippedContentGlobs --- docs/configuration.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index 0c42ae57..18f99a72 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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"] +``` \ No newline at end of file