Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Jan 6, 2024
1 parent c1d0e66 commit cf3b025
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,13 @@ export default {
* unocss.config.js
```ts
import presetWeapp from 'unocss-preset-weapp'
import { extractorAttributify, transformerClass } from 'unocss-preset-weapp/transformer'
import { extractorAttributify, transformerClass, defaultAttributes } from 'unocss-preset-weapp/transformer'
import { defineConfig } from 'unocss'

const transformRules = {
...defaultAttributes,
'.': '-d111-',
'/': '-s111-',
':': '-c111-',
'%': '-p111-',
'!': '-e111-',
'#': '-w111-',
'(': '-b111l-',
')': '-b111r-',
'[': '-f111l-',
']': '-f111r-',
'$': '-r111-',
',': '-r222-',
'/': '-s111-'
}

const { presetWeappAttributify, transformerAttributify } = extractorAttributify({
Expand Down

0 comments on commit cf3b025

Please sign in to comment.