From 4f5d6721b8b4647b8ecd40fb84ddeff77a3f0b83 Mon Sep 17 00:00:00 2001 From: Dmytro Cisar Date: Sat, 11 Sep 2021 22:34:35 +0300 Subject: [PATCH] update deps and readme --- README.md | 21 +++++++++++---------- package.json | 4 ++-- vite.config.js | 17 ++++++++--------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 0d7318e..797869f 100644 --- a/README.md +++ b/README.md @@ -12,22 +12,23 @@ * ⚡️ [Vite 2](https://github.com/vitejs/vite), [Vue 2](https://github.com/vuejs/vue) and [Composition-API](https://github.com/vuejs/composition-api) * 🚦 [Vue-Router](https://github.com/vuejs/vue-router) -* 📦 [Components auto importing](https://github.com/antfu/vite-plugin-components) * 🎨 [Windi CSS](https://github.com/windicss/vite-plugin-windicss) - on-demand Tailwind CSS with speed and dark mode -* 😃 [Icons as Vue components](https://github.com/antfu/vite-plugin-icons) - powered by [Iconify](https://github.com/iconify/iconify) -* 🧰 [VueUse](https://github.com/vueuse/vueuse) - collection of essential Vue Composition Utilities -* 🔍 ESLint + Prettier +* 📦 [Components auto importing](https://github.com/antfu/unplugin-vue-components) +* 😃 [Icons as Vue components](https://github.com/antfu/unplugin-icons) - powered by [Iconify](https://github.com/iconify/iconify) +* 🧰 [VueUse](https://github.com/vueuse/vueuse) - collection of essential Vue Composition Utilities +* 🔍 ESLint + Prettier * 🦾 Typescript + # 📦 Vite plugins * [`vite-plugin-vue2`](https://github.com/underfin/vite-plugin-vue2) - Vue 2 support for Vite -* [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components) - - On demand components auto importing for Vite * [`vite-plugin-windicss`](https://github.com/windicss/vite-plugin-windicss) - WindiCSS/TailwindCSS for Vite -* [`vite-plugin-icons`](https://github.com/antfu/vite-plugin-icons) - - Access thousands of icons as Vue components in Vite +* [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - + On demand components auto importing for Vite +* [`unplugin-icons`](https://github.com/antfu/unplugin-icons) - + Access thousands of icons as Vue components in Vite # 🚀 Getting started @@ -43,7 +44,7 @@ When you use this template, try follow the checklist to update your info properl - [ ] Change the favicon in `public` - [ ] Clean up the README(s) and remove routes -## Clone +## Clone If you prefer to do it manually with a cleaner git history @@ -63,7 +64,7 @@ Just run and visit [http://localhost:8080](http://localhost:8080) npm run dev ``` -## Build +## Build To build the App, run diff --git a/package.json b/package.json index 42b86f4..b75ad1d 100644 --- a/package.json +++ b/package.json @@ -27,9 +27,9 @@ "husky": "^6.0.0", "prettier": "^2.2.1", "typescript": "^4.2.4", + "unplugin-icons": "^0.7.6", + "unplugin-vue-components": "^0.15.0", "vite": "^2.2.3", - "vite-plugin-components": "^0.8.4", - "vite-plugin-icons": "^0.5.0", "vite-plugin-vue2": "^1.4.4", "vite-plugin-windicss": "^0.15.10" } diff --git a/vite.config.js b/vite.config.js index 8b2adfe..5197263 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,9 +1,10 @@ import path from "path"; import { defineConfig } from "vite"; import { createVuePlugin } from "vite-plugin-vue2"; -import ViteComponents from "vite-plugin-components"; import WindiCSS from "vite-plugin-windicss"; -import ViteIcons, { ViteIconsResolver } from "vite-plugin-icons"; +import Components from "unplugin-vue-components/vite"; +import Icons from "unplugin-icons/vite"; +import IconsResolver from "unplugin-icons/resolver"; const config = defineConfig({ resolve: { @@ -19,17 +20,15 @@ const config = defineConfig({ plugins: [ createVuePlugin(), - ViteComponents({ - customComponentResolvers: [ - ViteIconsResolver({ + WindiCSS(), + Components({ + resolvers: [ + IconsResolver({ componentPrefix: "", }), ], }), - ViteIcons({ - defaultStyle: "", - }), - WindiCSS(), + Icons(), ], server: {