Skip to content

Commit

Permalink
docs: make clear about safelist
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 8, 2022
1 parent aa41449 commit a4fdaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -594,7 +594,7 @@ By default UnoCSS will scan for components files like: `.jsx`, `.tsx`, `.vue`, `
Sometimes you might want have to use dynamic concatenations like:

```html
<div class="p-${size}"></div>
<div class="p-${size}"></div> <!-- this won't work! -->
```

Due the fact that UnoCSS works in build time using static extracting, at the compile time we can't possibility know all the combination of the utilities. For that, you can configure the `safelist` option.
Expand Down

0 comments on commit a4fdaad

Please sign in to comment.