mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 19:41:44 +08:00
feat-unocss.config.js 配置
This commit is contained in:
parent
8f5937656b
commit
9f0e579d36
161
pnpm-lock.yaml
generated
161
pnpm-lock.yaml
generated
@ -51,7 +51,6 @@ specifiers:
|
||||
unplugin-vue-components: ^0.22.11
|
||||
vite: ^3.2.4
|
||||
vite-plugin-eslint: ^1.8.1
|
||||
vite-plugin-purge-icons: ^0.9.1
|
||||
vue: ^3.2.45
|
||||
vue-i18n: ^9.2.2
|
||||
|
||||
@ -108,9 +107,8 @@ devDependencies:
|
||||
unocss: registry.npmmirror.com/unocss/0.46.5_vite@3.2.4
|
||||
unocss-preset-weapp: registry.npmmirror.com/unocss-preset-weapp/0.2.4
|
||||
unplugin-vue-components: registry.npmmirror.com/unplugin-vue-components/0.22.11_vue@3.2.45
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
vite: registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4
|
||||
vite-plugin-eslint: registry.npmmirror.com/vite-plugin-eslint/1.8.1_eslint@8.28.0+vite@3.2.4
|
||||
vite-plugin-purge-icons: registry.npmmirror.com/vite-plugin-purge-icons/0.9.1_vite@3.2.4
|
||||
|
||||
packages:
|
||||
|
||||
@ -1019,7 +1017,7 @@ packages:
|
||||
jsonc-parser: registry.npmmirror.com/jsonc-parser/3.2.0
|
||||
picocolors: registry.npmmirror.com/picocolors/1.0.0
|
||||
terser: registry.npmmirror.com/terser/5.16.0
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
vite: registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4
|
||||
transitivePeerDependencies:
|
||||
- postcss
|
||||
- supports-color
|
||||
@ -1100,22 +1098,13 @@ packages:
|
||||
version: 1.2.1
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/@iconify/iconify/2.1.2:
|
||||
resolution: {integrity: sha512-QcUzFeEWkE/mW+BVtEGmcWATClcCOIJFiYUD/PiCWuTcdEA297o8D4oN6Ra44WrNOHu1wqNW4J0ioaDIiqaFOQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@iconify/iconify/-/iconify-2.1.2.tgz}
|
||||
name: '@iconify/iconify'
|
||||
version: 2.1.2
|
||||
dependencies:
|
||||
cross-fetch: registry.npmmirror.com/cross-fetch/3.1.5
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/@iconify/iconify/3.0.0:
|
||||
resolution: {integrity: sha512-wgCSv4GwVLzwGqfUkYEDT9XOfetGZV67D5CmMYp74IdaPMnyOWb/3XxUPvGmuTt8Yw9xekMqzvdQp/p+a/abNw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@iconify/iconify/-/iconify-3.0.0.tgz}
|
||||
name: '@iconify/iconify'
|
||||
version: 3.0.0
|
||||
dependencies:
|
||||
'@iconify/types': registry.npmmirror.com/@iconify/types/2.0.0
|
||||
dev: false
|
||||
|
||||
registry.npmmirror.com/@iconify/json/2.1.144:
|
||||
resolution: {integrity: sha512-U4W9EHgDVKk/ll8fJ8J6atgtYj9MjPUiKtVlMlyz+SO90lI34QbgVJZOP/DEezLP/HcAIDLS2pgX+x+kFIkeWg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@iconify/json/-/json-2.1.144.tgz}
|
||||
@ -1295,7 +1284,6 @@ packages:
|
||||
dependencies:
|
||||
'@jridgewell/gen-mapping': registry.npmmirror.com/@jridgewell/gen-mapping/0.3.2
|
||||
'@jridgewell/trace-mapping': registry.npmmirror.com/@jridgewell/trace-mapping/0.3.17
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/@jridgewell/sourcemap-codec/1.4.14:
|
||||
resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz}
|
||||
@ -1348,29 +1336,6 @@ packages:
|
||||
version: 1.0.0-next.21
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/@purge-icons/core/0.9.1:
|
||||
resolution: {integrity: sha512-sx8/a30MbbqQVEqhuMPE1wJpdVRRbEmwEPZpFzVkcDixzX4p+R2A0WVxqkb0xfHUBAVQwrSE2SeAyniIQLqbLw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@purge-icons/core/-/core-0.9.1.tgz}
|
||||
name: '@purge-icons/core'
|
||||
version: 0.9.1
|
||||
dependencies:
|
||||
'@iconify/iconify': registry.npmmirror.com/@iconify/iconify/2.1.2
|
||||
axios: registry.npmmirror.com/axios/0.26.1_debug@4.3.4
|
||||
debug: registry.npmmirror.com/debug/4.3.4
|
||||
fast-glob: registry.npmmirror.com/fast-glob/3.2.12
|
||||
fs-extra: registry.npmmirror.com/fs-extra/10.1.0
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/@purge-icons/generated/0.9.0:
|
||||
resolution: {integrity: sha512-s2t+1oVtGDV6KtqfCXtUOhxfeYvOdDF90IVm+nMs/6bUP0HeGZLslguuL/AibpwtfL4FA/oCsIu/RhwapgAdJw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@purge-icons/generated/-/generated-0.9.0.tgz}
|
||||
name: '@purge-icons/generated'
|
||||
version: 0.9.0
|
||||
dependencies:
|
||||
'@iconify/iconify': registry.npmmirror.com/@iconify/iconify/3.0.0
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/@rollup/pluginutils/4.2.1:
|
||||
resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz}
|
||||
name: '@rollup/pluginutils'
|
||||
@ -1832,7 +1797,7 @@ packages:
|
||||
'@unocss/scope': registry.npmmirror.com/@unocss/scope/0.46.5
|
||||
'@unocss/transformer-directives': registry.npmmirror.com/@unocss/transformer-directives/0.46.5
|
||||
magic-string: registry.npmmirror.com/magic-string/0.26.7
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
vite: registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4
|
||||
transitivePeerDependencies:
|
||||
- rollup
|
||||
dev: true
|
||||
@ -1853,7 +1818,7 @@ packages:
|
||||
regenerator-runtime: registry.npmmirror.com/regenerator-runtime/0.13.11
|
||||
systemjs: registry.npmmirror.com/systemjs/6.13.0
|
||||
terser: registry.npmmirror.com/terser/5.16.0
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
vite: registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/@vitejs/plugin-vue-jsx/2.1.1_vite@3.2.4+vue@3.2.45:
|
||||
@ -1869,7 +1834,7 @@ packages:
|
||||
'@babel/core': registry.npmmirror.com/@babel/core/7.20.2
|
||||
'@babel/plugin-transform-typescript': registry.npmmirror.com/@babel/plugin-transform-typescript/7.20.2_@babel+core@7.20.2
|
||||
'@vue/babel-plugin-jsx': registry.npmmirror.com/@vue/babel-plugin-jsx/1.1.1_@babel+core@7.20.2
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
vite: registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4
|
||||
vue: registry.npmmirror.com/vue/3.2.45
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
@ -1885,7 +1850,7 @@ packages:
|
||||
vite: ^3.0.0
|
||||
vue: ^3.2.25
|
||||
dependencies:
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
vite: registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4
|
||||
vue: registry.npmmirror.com/vue/3.2.45
|
||||
|
||||
registry.npmmirror.com/@vue/babel-helper-vue-transform-on/1.0.2:
|
||||
@ -2041,7 +2006,6 @@ packages:
|
||||
version: 8.8.1
|
||||
engines: {node: '>=0.4.0'}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/address/1.2.1:
|
||||
resolution: {integrity: sha512-B+6bi5D34+fDYENiH5qOlA0cV2rAGKuWZ9LeyUUehbXy8e0VS9e498yO0Jeeh+iM+6KbfudHTFjXw2MmJD4QRA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/address/-/address-1.2.1.tgz}
|
||||
@ -2215,17 +2179,6 @@ packages:
|
||||
postcss: registry.npmmirror.com/postcss/8.4.19
|
||||
postcss-value-parser: registry.npmmirror.com/postcss-value-parser/4.2.0
|
||||
|
||||
registry.npmmirror.com/axios/0.26.1_debug@4.3.4:
|
||||
resolution: {integrity: sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/axios/-/axios-0.26.1.tgz}
|
||||
id: registry.npmmirror.com/axios/0.26.1
|
||||
name: axios
|
||||
version: 0.26.1
|
||||
dependencies:
|
||||
follow-redirects: registry.npmmirror.com/follow-redirects/1.15.2_debug@4.3.4
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/babel-code-frame/6.26.0:
|
||||
resolution: {integrity: sha512-XqYMR2dfdGMW+hd0IUZ2PwK+fGeFkOxZJ0wY+JaQAHzt1Zx8LcvpiZD2NiGkEG8qx0CfkAOr5xt76d1e8vG90g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz}
|
||||
name: babel-code-frame
|
||||
@ -2354,7 +2307,6 @@ packages:
|
||||
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz}
|
||||
name: buffer-from
|
||||
version: 1.1.2
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/builtins/1.0.3:
|
||||
resolution: {integrity: sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/builtins/-/builtins-1.0.3.tgz}
|
||||
@ -2644,7 +2596,6 @@ packages:
|
||||
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz}
|
||||
name: commander
|
||||
version: 2.20.3
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/commander/9.4.1:
|
||||
resolution: {integrity: sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/commander/-/commander-9.4.1.tgz}
|
||||
@ -2776,16 +2727,6 @@ packages:
|
||||
cross-spawn: registry.npmmirror.com/cross-spawn/7.0.3
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/cross-fetch/3.1.5:
|
||||
resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cross-fetch/-/cross-fetch-3.1.5.tgz}
|
||||
name: cross-fetch
|
||||
version: 3.1.5
|
||||
dependencies:
|
||||
node-fetch: registry.npmmirror.com/node-fetch/2.6.7
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/cross-spawn/5.1.0:
|
||||
resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cross-spawn/-/cross-spawn-5.1.0.tgz}
|
||||
name: cross-spawn
|
||||
@ -3855,21 +3796,6 @@ packages:
|
||||
version: 3.2.7
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/follow-redirects/1.15.2_debug@4.3.4:
|
||||
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.2.tgz}
|
||||
id: registry.npmmirror.com/follow-redirects/1.15.2
|
||||
name: follow-redirects
|
||||
version: 1.15.2
|
||||
engines: {node: '>=4.0'}
|
||||
peerDependencies:
|
||||
debug: '*'
|
||||
peerDependenciesMeta:
|
||||
debug:
|
||||
optional: true
|
||||
dependencies:
|
||||
debug: registry.npmmirror.com/debug/4.3.4
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/forwarded/0.2.0:
|
||||
resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz}
|
||||
name: forwarded
|
||||
@ -5254,20 +5180,6 @@ packages:
|
||||
version: 0.1.8
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/node-fetch/2.6.7:
|
||||
resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/node-fetch/-/node-fetch-2.6.7.tgz}
|
||||
name: node-fetch
|
||||
version: 2.6.7
|
||||
engines: {node: 4.x || >=6.0.0}
|
||||
peerDependencies:
|
||||
encoding: ^0.1.0
|
||||
peerDependenciesMeta:
|
||||
encoding:
|
||||
optional: true
|
||||
dependencies:
|
||||
whatwg-url: registry.npmmirror.com/whatwg-url/5.0.0
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/node-releases/2.0.6:
|
||||
resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/node-releases/-/node-releases-2.0.6.tgz}
|
||||
name: node-releases
|
||||
@ -6155,19 +6067,6 @@ packages:
|
||||
glob: registry.npmmirror.com/glob/7.2.3
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/rollup-plugin-purge-icons/0.9.1:
|
||||
resolution: {integrity: sha512-hRDKBsPUz47UMdBufki2feTmBF2ClEJlYqL7N6vpVAHSLd7V2BJUaNKOF7YYbLMofVVF+9hm44YSkYO6k9hUgg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rollup-plugin-purge-icons/-/rollup-plugin-purge-icons-0.9.1.tgz}
|
||||
name: rollup-plugin-purge-icons
|
||||
version: 0.9.1
|
||||
engines: {node: '>= 12'}
|
||||
dependencies:
|
||||
'@purge-icons/core': registry.npmmirror.com/@purge-icons/core/0.9.1
|
||||
'@purge-icons/generated': registry.npmmirror.com/@purge-icons/generated/0.9.0
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/rollup/2.79.1:
|
||||
resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rollup/-/rollup-2.79.1.tgz}
|
||||
name: rollup
|
||||
@ -6458,7 +6357,6 @@ packages:
|
||||
dependencies:
|
||||
buffer-from: registry.npmmirror.com/buffer-from/1.1.2
|
||||
source-map: registry.npmmirror.com/source-map/0.6.1
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/source-map/0.6.1:
|
||||
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz}
|
||||
@ -6709,7 +6607,6 @@ packages:
|
||||
acorn: registry.npmmirror.com/acorn/8.8.1
|
||||
commander: registry.npmmirror.com/commander/2.20.3
|
||||
source-map-support: registry.npmmirror.com/source-map-support/0.5.21
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/text-table/0.2.0:
|
||||
resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz}
|
||||
@ -6774,12 +6671,6 @@ packages:
|
||||
engines: {node: '>=6'}
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/tr46/0.0.3:
|
||||
resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/tr46/-/tr46-0.0.3.tgz}
|
||||
name: tr46
|
||||
version: 0.0.3
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/tslib/1.14.1:
|
||||
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/tslib/-/tslib-1.14.1.tgz}
|
||||
name: tslib
|
||||
@ -7217,28 +7108,10 @@ packages:
|
||||
'@types/eslint': registry.npmmirror.com/@types/eslint/8.4.10
|
||||
eslint: registry.npmmirror.com/eslint/8.28.0
|
||||
rollup: registry.npmmirror.com/rollup/2.79.1
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
vite: registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/vite-plugin-purge-icons/0.9.1_vite@3.2.4:
|
||||
resolution: {integrity: sha512-oS0Y9Iq6vGnTDVRzB8xJNhA/gGlyR0lfCICU6+9FRKdrO5PnT34fRjvd8YWEsegCrk91+w3GVZc0HJDj/dPp5Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vite-plugin-purge-icons/-/vite-plugin-purge-icons-0.9.1.tgz}
|
||||
id: registry.npmmirror.com/vite-plugin-purge-icons/0.9.1
|
||||
name: vite-plugin-purge-icons
|
||||
version: 0.9.1
|
||||
engines: {node: '>= 12'}
|
||||
peerDependencies:
|
||||
vite: ^2.0.0-beta.3 || ^3.0.0
|
||||
dependencies:
|
||||
'@purge-icons/core': registry.npmmirror.com/@purge-icons/core/0.9.1
|
||||
'@purge-icons/generated': registry.npmmirror.com/@purge-icons/generated/0.9.0
|
||||
rollup-plugin-purge-icons: registry.npmmirror.com/rollup-plugin-purge-icons/0.9.1
|
||||
vite: registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/vite/3.2.4_n6khcd6nwbbqng5r3hmfpt3hqi:
|
||||
registry.npmmirror.com/vite/3.2.4_hpujc7mmastbfzen37mybx6iy4:
|
||||
resolution: {integrity: sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vite/-/vite-3.2.4.tgz}
|
||||
id: registry.npmmirror.com/vite/3.2.4
|
||||
name: vite
|
||||
@ -7272,6 +7145,7 @@ packages:
|
||||
resolve: registry.npmmirror.com/resolve/1.22.1
|
||||
rollup: registry.npmmirror.com/rollup/2.79.1
|
||||
sass: registry.npmmirror.com/sass/1.56.1
|
||||
terser: registry.npmmirror.com/terser/5.16.0
|
||||
optionalDependencies:
|
||||
fsevents: registry.npmmirror.com/fsevents/2.3.2
|
||||
|
||||
@ -7353,12 +7227,6 @@ packages:
|
||||
'@vue/server-renderer': registry.npmmirror.com/@vue/server-renderer/3.2.45_vue@3.2.45
|
||||
'@vue/shared': registry.npmmirror.com/@vue/shared/3.2.45
|
||||
|
||||
registry.npmmirror.com/webidl-conversions/3.0.1:
|
||||
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz}
|
||||
name: webidl-conversions
|
||||
version: 3.0.1
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/webpack-merge/4.2.2:
|
||||
resolution: {integrity: sha512-TUE1UGoTX2Cd42j3krGYqObZbOD+xF7u28WB7tfUordytSjbWTIjK/8V0amkBfTYN4/pB/GIDlJZZ657BGG19g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/webpack-merge/-/webpack-merge-4.2.2.tgz}
|
||||
name: webpack-merge
|
||||
@ -7380,15 +7248,6 @@ packages:
|
||||
version: 0.4.6
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/whatwg-url/5.0.0:
|
||||
resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/whatwg-url/-/whatwg-url-5.0.0.tgz}
|
||||
name: whatwg-url
|
||||
version: 5.0.0
|
||||
dependencies:
|
||||
tr46: registry.npmmirror.com/tr46/0.0.3
|
||||
webidl-conversions: registry.npmmirror.com/webidl-conversions/3.0.1
|
||||
dev: true
|
||||
|
||||
registry.npmmirror.com/which-module/2.0.0:
|
||||
resolution: {integrity: sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/which-module/-/which-module-2.0.0.tgz}
|
||||
name: which-module
|
||||
|
@ -2,16 +2,9 @@
|
||||
* https://zhuanlan.zhihu.com/p/569976147
|
||||
* */
|
||||
|
||||
import { defineConfig, presetAttributify, presetIcons } from 'unocss';
|
||||
import presetWeapp from 'unocss-preset-weapp';
|
||||
import {
|
||||
defineConfig,
|
||||
presetIcons,
|
||||
presetUno,
|
||||
presetAttributify,
|
||||
} from 'unocss';
|
||||
import {
|
||||
defaultAttributes,
|
||||
defaultIgnoreNonValuedAttributes,
|
||||
transformerAttributify,
|
||||
transformerClass,
|
||||
} from 'unocss-preset-weapp/transformer';
|
||||
@ -31,15 +24,18 @@ const transformRules = {
|
||||
',': '-r222-',
|
||||
};
|
||||
|
||||
const prefix = `un:`;
|
||||
|
||||
export default defineConfig({
|
||||
presets: [
|
||||
// https://github.com/MellowCo/unocss-preset-weapp
|
||||
presetWeapp({
|
||||
nonValuedAttribute: true,
|
||||
prefix: 'uno-',
|
||||
prefix: prefix,
|
||||
whRpx: true,
|
||||
transform: true,
|
||||
platform: 'uniapp',
|
||||
}),
|
||||
presetAttributify({}),
|
||||
presetUno(),
|
||||
presetIcons({
|
||||
scale: 1.2,
|
||||
warn: true,
|
||||
@ -51,14 +47,14 @@ export default defineConfig({
|
||||
center: 'flex justify-center items-center',
|
||||
},
|
||||
],
|
||||
|
||||
// v0.1.14 unplugin-attributify-to-class 和 unplugin-transform-class 内置到 transformer 中
|
||||
theme: {},
|
||||
transformers: [
|
||||
// options 见 https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify
|
||||
transformerAttributify({
|
||||
classPrefix: prefix,
|
||||
transformRules,
|
||||
nonValuedAttribute: true,
|
||||
}),
|
||||
|
||||
// options 见 https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
|
||||
transformerClass({
|
||||
transformRules,
|
||||
|
Loading…
x
Reference in New Issue
Block a user