Skip to content

Commit

Permalink
test: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Nov 12, 2022
1 parent d5a33a6 commit 1071fdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/taro_webpack5_vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@babel/core": "^7.8.0",
"@tarojs/cli": "3.5.5",
"@tarojs/webpack5-runner": "3.5.5",
"@types/node": "^18.11.9",
"@types/webpack-env": "^1.13.6",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
Expand All @@ -75,7 +76,7 @@
"stylelint": "9.3.0",
"typescript": "^3.7.0",
"unocss": "^0.46.1",
"unocss-preset-weapp": "^0.1.18",
"unocss-preset-weapp": "^0.2.0",
"vue-loader": "^17.0.0",
"webpack": "5.69.0"
}
Expand Down
5 changes: 3 additions & 2 deletions examples/taro_webpack5_vue3/unocss.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import presetWeapp from 'unocss-preset-weapp'
import { transformerAttributify, transformerClass } from 'unocss-preset-weapp/transformer'
import { defineConfig } from 'unocss'

export default {
export default defineConfig({
presets: [
// https://github.com/MellowCo/unocss-preset-weapp
presetWeapp(
Expand All @@ -23,4 +24,4 @@ export default {
transformerAttributify(),
transformerClass(),
],
}
})

0 comments on commit 1071fdc

Please sign in to comment.