Skip to content

Commit 5c774c0

Browse files
committed
chore(examples): update example for unplugin-icons
1 parent 1f44492 commit 5c774c0

File tree

6 files changed

+177
-161
lines changed

6 files changed

+177
-161
lines changed

examples/my-mpa-ts-app/yarn.lock

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,10 +1298,10 @@
12981298
semver "^7.3.2"
12991299
tsutils "^3.17.1"
13001300

1301-
"@vitejs/plugin-vue-jsx@1.1.7":
1302-
version "1.1.7"
1303-
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.7.tgz#3e0236a01d6b5f8010bd6bc5ffccdbe1f0fa50d5"
1304-
integrity sha512-lomCrTZ/LXUk8L+1fBX4dpW+L/S7qY4+pzS5BRG2NuLpjo26Efh4yb8nDkYM7b8COS3ea7otis0SsqD8vGOSlg==
1301+
"@vitejs/plugin-vue-jsx@1.1.8":
1302+
version "1.1.8"
1303+
resolved "https://registry.nlark.com/@vitejs/plugin-vue-jsx/download/@vitejs/plugin-vue-jsx-1.1.8.tgz#c7b9efd94efe8801635f755b6fd0d0a3a70cf596"
1304+
integrity sha1-x7nv2U7+iAFjX3Vbb9DQo6cM9ZY=
13051305
dependencies:
13061306
"@babel/core" "^7.14.8"
13071307
"@babel/plugin-syntax-import-meta" "^7.10.4"
@@ -1310,10 +1310,10 @@
13101310
"@vue/babel-plugin-jsx" "^1.0.6"
13111311
hash-sum "^2.0.0"
13121312

1313-
"@vitejs/plugin-vue@1.6.0":
1314-
version "1.6.0"
1315-
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.6.0.tgz#e5558e20c20e9098cd5bd65b9901fdcd2c354983"
1316-
integrity sha512-n3i8htn8pTg9M+kM3cnEfsPZx/6ngInlTroth6fA1LQTJq5aTVQ8ggaE5pPoAy9vCgHPtcaXMzwpldhqRAkebQ==
1313+
"@vitejs/plugin-vue@1.6.2":
1314+
version "1.6.2"
1315+
resolved "https://registry.nlark.com/@vitejs/plugin-vue/download/@vitejs/plugin-vue-1.6.2.tgz#40dfe314cff610d4dd027a0b4ea2a93a257f3fc9"
1316+
integrity sha1-QN/jFM/2ENTdAnoLTqKpOiV/P8k=
13171317

13181318
"@vue/babel-helper-vue-jsx-merge-props@^1.2.1":
13191319
version "1.2.1"
@@ -9828,10 +9828,10 @@ vite-plugin-checker@0.3.4:
98289828
vscode-languageserver-textdocument "^1.0.1"
98299829
vscode-uri "^3.0.2"
98309830

9831-
vite-plugin-env-compatible@1.1.0:
9832-
version "1.1.0"
9833-
resolved "https://registry.yarnpkg.com/vite-plugin-env-compatible/-/vite-plugin-env-compatible-1.1.0.tgz#04531f598ffe22c71f114d4e194bf7309a3a5255"
9834-
integrity sha512-/FUfi6RA28+9TI6NKaO8p4AWSOytBYjWoFevNTaW6bOcqNPHCn2zDZ5ksstDQIyLS4TT9Fv4MqH2+8afngJbNw==
9831+
vite-plugin-env-compatible@1.1.1:
9832+
version "1.1.1"
9833+
resolved "https://registry.nlark.com/vite-plugin-env-compatible/download/vite-plugin-env-compatible-1.1.1.tgz#2e11b059a5f3e8fc609d6a4bba84ca497081ee20"
9834+
integrity sha1-LhGwWaXz6PxgnWpLuoTKSXCB7iA=
98359835

98369836
vite-plugin-eslint@1.3.0:
98379837
version "1.3.0"
@@ -9849,19 +9849,19 @@ vite-plugin-html-template@1.0.4:
98499849
dependencies:
98509850
shelljs "0.8.4"
98519851

9852-
vite-plugin-mpa@1.0.3:
9853-
version "1.0.3"
9854-
resolved "https://registry.yarnpkg.com/vite-plugin-mpa/-/vite-plugin-mpa-1.0.3.tgz#1c6ee5a8e8f5ace32e60827433fc73b56d705724"
9855-
integrity sha512-qNA0koRvn+iR1KUUjbWS1GRPXqhPCx17hdkpJ3VxdbjjnZcmhtMce/oN/6ww9g7fSN4McdNUO5r8Hsy9axu8kA==
9852+
vite-plugin-mpa@1.1.0:
9853+
version "1.1.0"
9854+
resolved "https://registry.nlark.com/vite-plugin-mpa/download/vite-plugin-mpa-1.1.0.tgz#7da9a243f90ae7fe88e5a63a8e993eaa94616461"
9855+
integrity sha1-famiQ/kK5/6I5aY6jpk+qpRhZGE=
98569856
dependencies:
98579857
connect-history-api-fallback "1.6.0"
98589858
shelljs "0.8.4"
98599859
yargs "16.2.0"
98609860

9861-
vite-plugin-vue-cli@1.3.7:
9862-
version "1.3.7"
9863-
resolved "https://registry.yarnpkg.com/vite-plugin-vue-cli/-/vite-plugin-vue-cli-1.3.7.tgz#fd4861b4faf5fec7e80ffbeab4023a9e16ac8055"
9864-
integrity sha512-bi3AarXEaJquekC8nM/ni/zHZIIv1awkQQqYhlj/Jd+LZnUZP4IisjSmwxZ5LDK/rF9Z+tYFgYTN6BSmjyXM2w==
9861+
vite-plugin-vue-cli@1.4.0:
9862+
version "1.4.0"
9863+
resolved "https://registry.nlark.com/vite-plugin-vue-cli/download/vite-plugin-vue-cli-1.4.0.tgz#f7d5c344532b94b412a3b79b7055067da152d59a"
9864+
integrity sha1-99XDRFMrlLQSo7ebcFUGfaFS1Zo=
98659865
dependencies:
98669866
"@babel/core" "^7.12.10"
98679867
"@babel/plugin-transform-typescript" "^7.12.1"
@@ -9899,10 +9899,10 @@ vite-plugin-vue2@1.8.1:
98999899
source-map "^0.7.3"
99009900
vue-template-es2015-compiler "^1.9.1"
99019901

9902-
vite@2.5.1:
9903-
version "2.5.1"
9904-
resolved "https://registry.yarnpkg.com/vite/-/vite-2.5.1.tgz#953c71a034c07b3ae0448d57664ec9c6862f23a8"
9905-
integrity sha512-FwmLbbz8MB1pBs9dKoRDgpiqoijif8hSK1+NNUYc12/cnf+pM2UFhhQ1rcpXgbMhm/5c2USZdVAf0FSkSxaFDA==
9902+
vite@2.5.7:
9903+
version "2.5.7"
9904+
resolved "https://registry.nlark.com/vite/download/vite-2.5.7.tgz#e495be9d8bcbf9d30c7141efdccacde746ee0125"
9905+
integrity sha1-5JW+nYvL+dMMcUHv3MrN50buASU=
99069906
dependencies:
99079907
esbuild "^0.12.17"
99089908
postcss "^8.3.6"
@@ -9971,24 +9971,24 @@ vscode-uri@^3.0.2:
99719971
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.2.tgz#ecfd1d066cb8ef4c3a208decdbab9a8c23d055d0"
99729972
integrity sha512-jkjy6pjU1fxUvI51P+gCsxg1u2n8LSt0W6KrCNQceaziKzff74GoWmjVG46KieVzybO1sttPQmYfrwSHey7GUA==
99739973

9974-
vue-cli-plugin-vite@1.4.4:
9975-
version "1.4.4"
9976-
resolved "https://registry.yarnpkg.com/vue-cli-plugin-vite/-/vue-cli-plugin-vite-1.4.4.tgz#3bdab5fbff1c249134ffac13d653e2b7c0827e1f"
9977-
integrity sha512-/LZq+zb82TYoqW2NiJEBQBQKBxLvNr62cWZMVRZw7OtGVu6LLx0B3pYi91DFRlttYHQJFhP76GBPpFak4Ii3Zg==
9974+
vue-cli-plugin-vite@1.4.9:
9975+
version "1.4.9"
9976+
resolved "https://registry.nlark.com/vue-cli-plugin-vite/download/vue-cli-plugin-vite-1.4.9.tgz#15df90639e26c7c0bb2da2287ff1a0c7edee256b"
9977+
integrity sha1-Fd+QY54mx8C7LaIof/Ggx+3uJWs=
99789978
dependencies:
99799979
"@types/semver" "7.3.4"
9980-
"@vitejs/plugin-vue" "1.6.0"
9981-
"@vitejs/plugin-vue-jsx" "1.1.7"
9980+
"@vitejs/plugin-vue" "1.6.2"
9981+
"@vitejs/plugin-vue-jsx" "1.1.8"
99829982
chalk "4.1.0"
99839983
cross-spawn "7.0.3"
99849984
semver "7.3.5"
9985-
vite "2.5.1"
9985+
vite "2.5.7"
99869986
vite-plugin-checker "0.3.4"
9987-
vite-plugin-env-compatible "1.1.0"
9987+
vite-plugin-env-compatible "1.1.1"
99889988
vite-plugin-eslint "1.3.0"
99899989
vite-plugin-html-template "1.0.4"
9990-
vite-plugin-mpa "1.0.3"
9991-
vite-plugin-vue-cli "1.3.7"
9990+
vite-plugin-mpa "1.1.0"
9991+
vite-plugin-vue-cli "1.4.0"
99929992
vite-plugin-vue2 "1.8.1"
99939993
vls "0.7.4"
99949994

examples/my-spa-js-app/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
"vue": "^2.6.11"
1515
},
1616
"devDependencies": {
17+
"@iconify/json": "^1.1.401",
1718
"@vue/cli-plugin-babel": "~4.5.0",
1819
"@vue/cli-plugin-eslint": "~4.5.0",
1920
"@vue/cli-service": "~4.5.0",
2021
"babel-eslint": "^10.1.0",
2122
"eslint": "^6.7.2",
2223
"eslint-plugin-vue": "^6.2.2",
24+
"unplugin-icons": "^0.11.1",
2325
"vue-cli-plugin-vite": "1.4.9",
2426
"vue-template-compiler": "^2.6.11"
2527
},

examples/my-spa-js-app/src/App.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
<template>
22
<div id="app">
3-
<img alt="Vue logo" src="~@/assets/logo.png">
4-
<HelloWorld msg="Welcome to Your Vue.js App"/>
3+
<img alt="Vue logo" src="~@/assets/logo.png" />
4+
<HelloWorld msg="Welcome to Your Vue.js App" />
5+
<icon-search />
56
</div>
67
</template>
78

89
<script>
910
import HelloWorld from './components/HelloWorld.vue'
11+
import IconSearch from '~icons/feather/search'
1012
1113
export default {
1214
name: 'App',
1315
components: {
14-
HelloWorld
15-
}
16+
HelloWorld,
17+
IconSearch,
18+
},
1619
}
1720
</script>
1821

examples/my-spa-js-app/vue.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ module.exports = () => {
44
devServer: {
55
overlay: false,
66
},
7+
configureWebpack: {
8+
plugins: [require('unplugin-icons/webpack')({ compiler: 'vue2' })],
9+
},
710
pluginOptions: {
811
vite: {
912
disabledTypeChecker: true,
13+
plugins: [require('unplugin-icons/vite')({ compiler: 'vue2' })],
1014
},
11-
}
15+
},
1216
}
1317
}

0 commit comments

Comments
 (0)