Skip to content

Commit

Permalink
Update broken link to PurgeCSS whitelisting
Browse files Browse the repository at this point in the history
PurgeCSS changed the term from "whitelisting" to "safelisting" and didn't set up a redirect, so I've updated this link.
  • Loading branch information
weaversam8 authored Oct 14, 2020
1 parent e1ff568 commit f41f0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ title: "The atomic web toolkit for pragmatists"
Tailwind (which has a CSS reset built-in), make sure you use something like <a href="https://necolas.github.io/normalize.css/">Normalize.css</a>.
</p>
<p>
<strong>Add <code class="code">~*</code> and <code class="code">!*</code> classes to your <a href="https://purgecss.com/whitelisting.html">PurgeCSS class whitelist</a>,
<strong>Add <code class="code">~*</code> and <code class="code">!*</code> classes to your <a href="https://purgecss.com/safelisting.html">PurgeCSS class safelist</a>,
if applicable.</strong> Because of an issue with PurgeCSS, it erroneously removes modifier classes that only set CSS variables (like <code class="code">~urge</code>
and <code class="code">!low</code>). Add the following to your PurgeCSS config: <code class="code">whitelistPatterns: [/^~/, /^!/]</code>.
</p>
Expand Down

0 comments on commit f41f0ac

Please sign in to comment.