Skip to content

Commit

Permalink
removed inclusion of rejectedCss
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Nov 27, 2023
1 parent 6c43f6e commit 74b3725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-items-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vite-plugin-tailwind-purgecss': patch
---

fix: Decreased plugin processing time by 80%
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ export function purgeCss(purgeOptions?: PurgeOptions): Plugin {
...purgeOptions,
content: [join(viteConfig.root, '**/*.html'), ...(purgeOptions?.content ?? [])],
css: [{ raw: (asset.source as string).trim(), name: fileName }],
rejected: true,
rejectedCss: true,
safelist: {
...purgeOptions?.safelist,
standard,
Expand Down

0 comments on commit 74b3725

Please sign in to comment.