Skip to content

Commit

Permalink
fix: safelist
Browse files Browse the repository at this point in the history
Release-As: 0.0.11
  • Loading branch information
robertlyall committed Jun 4, 2024
1 parent dcaf3e0 commit 415dc61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/fix-safelist'
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }} # e.g. v1.0.0
Expand All @@ -21,6 +21,7 @@ jobs:
with:
token: ${{ steps.generate-github-token.outputs.token }}
command: manifest
default-branch: fix-safelist

release-npm:
name: Release NPM Package
Expand Down
10 changes: 4 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,15 @@ const plugin = withOptions(

return {
safelist: [
"bg-gray-100",
{
pattern: /bg-+/,
pattern: /^bg-\w+-(50|500)$/,
},
{
pattern: /border-+/,
pattern: /^border-\w+-(600)$/,
},
{
pattern: /grid-cols-+/,
},
{
pattern: /text-+/,
pattern: /^text-\w+-(600|700)$/,
},
],
theme: {
Expand Down

0 comments on commit 415dc61

Please sign in to comment.