From cad6b0f8080d0327e14034fd38f1d5e0c6a72b6e Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 10 Aug 2020 22:02:53 +0800 Subject: [PATCH] chore: update purge-icons --- package.json | 3 ++- pnpm-lock.yaml | 24 ++++++++++++++++-------- src/main.ts | 2 +- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index a02ef44..b8a481d 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@antfu/eslint-config-vue": "^0.2.14", "@iconify/json": "^1.1.204", + "@purge-icons/generated": "^0.1.0", "@typescript-eslint/eslint-plugin": "^3.8.0", "@vue/compiler-sfc": "^3.0.0-rc.5", "eslint": "^7.6.0", @@ -25,7 +26,7 @@ "tailwindcss-dark-mode": "^1.1.6", "typescript": "^3.9.7", "vite": "^1.0.0-rc.4", - "vite-plugin-purge-icons": "^0.0.1", + "vite-plugin-purge-icons": "^0.2.0", "vite-plugin-voie": "^0.2.0" }, "eslintConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 92a2e94..9540092 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,7 @@ dependencies: devDependencies: '@antfu/eslint-config-vue': 0.2.14_eslint@7.6.0+typescript@3.9.7 '@iconify/json': 1.1.204 + '@purge-icons/generated': 0.1.0 '@typescript-eslint/eslint-plugin': 3.8.0_eslint@7.6.0+typescript@3.9.7 '@vue/compiler-sfc': 3.0.0-rc.5_vue@3.0.0-rc.5 eslint: 7.6.0 @@ -16,7 +17,7 @@ devDependencies: tailwindcss-dark-mode: 1.1.6 typescript: 3.9.7 vite: 1.0.0-rc.4 - vite-plugin-purge-icons: 0.0.1 + vite-plugin-purge-icons: 0.2.0 vite-plugin-voie: 0.2.0_6b72416f8828a68c9ce672e874710004 lockfileVersion: 5.1 packages: @@ -153,7 +154,6 @@ packages: resolution: integrity: sha512-qnKm5dIOyPGJ70kPZ5jiz0I9foVOic0j+cOzNDoo8KoCf6HjicIZ99UfO2OmE7vCYSKAAepEwJtNzpiiZAh9xw== /@iconify/iconify/1.0.7: - dev: false resolution: integrity: sha512-qCbH1V/Ceg302lrgBiiXCZAyqMAq8KqsHYokCpUvgBH6yYfAmvlSkEEBrmJdHofQvfY/+xaeQcsOOTjW7JakNw== /@iconify/json/1.1.204: @@ -184,6 +184,12 @@ packages: node: '>= 8' resolution: integrity: sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ== + /@purge-icons/generated/0.1.0: + dependencies: + '@iconify/iconify': 1.0.7 + dev: true + resolution: + integrity: sha512-ixZczHbC6xGpmmq8EvD5zUN/yuVPH31AECvld6XpACPX6bqhZdNGIWTHMkag36AzoGsaanSrdQxPXOj1894kog== /@rollup/plugin-commonjs/14.0.0_rollup@2.23.0: dependencies: '@rollup/pluginutils': 3.1.0_rollup@2.23.0 @@ -3115,7 +3121,7 @@ packages: node: '>=6' resolution: integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - /purge-icons/0.0.2: + /purge-icons/0.1.0: dependencies: axios: 0.19.2 debug: 4.1.1 @@ -3125,7 +3131,7 @@ packages: dev: true hasBin: true resolution: - integrity: sha512-dytZVCS/38pgOWxaqWx+Rh2oKN9e7fpr7YvOWucKo5PL/VfZLaVLLD/EyI6+IAE94FI348KIcoGg/vDpT18IYQ== + integrity: sha512-Slu25tm5kkccB/hcZVocbO3G9OhTym4j5SqLOH2GKPl25ufSUETGGck9w2oUsXg++gxBE1djcS8R+i/1CgjeTw== /purgecss/2.3.0: dependencies: commander: 5.1.0 @@ -3786,12 +3792,13 @@ packages: node: '>= 0.8' resolution: integrity: sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= - /vite-plugin-purge-icons/0.0.1: + /vite-plugin-purge-icons/0.2.0: dependencies: - purge-icons: 0.0.2 + '@purge-icons/generated': 0.1.0 + purge-icons: 0.1.0 dev: true resolution: - integrity: sha512-vDn7gy1IUXIvq0y7gI4VlS3/FdM84q0GxSRfZktA7I2tLS2HGIJyaWuX/ZCYqgFGRcHD5QrFiEhLOoc3TybhPA== + integrity: sha512-8SBi7uNswx6ve/IvvdFbLWykNc6fCJpmrWt9mAT6H9hQTdFdVAfmvhGRYqP4mR04tAhdsMQZnvk/q4XXas4wXQ== /vite-plugin-voie/0.2.0_6b72416f8828a68c9ce672e874710004: dependencies: glob: 7.1.6 @@ -4024,6 +4031,7 @@ specifiers: '@antfu/eslint-config-vue': ^0.2.14 '@iconify/iconify': ^1.0.7 '@iconify/json': ^1.1.204 + '@purge-icons/generated': ^0.1.0 '@typescript-eslint/eslint-plugin': ^3.8.0 '@vue/compiler-sfc': ^3.0.0-rc.5 '@vueuse/core': ^4.0.0-beta.4 @@ -4034,7 +4042,7 @@ specifiers: typescript: ^3.9.7 variantwind: ^0.6.0 vite: ^1.0.0-rc.4 - vite-plugin-purge-icons: ^0.0.1 + vite-plugin-purge-icons: ^0.2.0 vite-plugin-voie: ^0.2.0 vue: ^3.0.0-rc.5 vue-i18n: 9.0.0-alpha.10 diff --git a/src/main.ts b/src/main.ts index 8f00f95..c61d104 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ import { directive as variantwind } from 'variantwind' // @ts-ignore: this is generated from voie, which TypeScript is not able to infer types correctly import routes from '/@voie/pages' // import icons data genereted by PurgeIcons -import '/@purge-icons/icons' +import '@purge-icons/generated' import { registerComponents } from './components' import App from './App.vue'