Skip to content

Commit e73b71c

Browse files
committed
Chore: Add vConsole plugin
1 parent 1974fb4 commit e73b71c

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@vant/touch-emulator": "^1.3.2",
1212
"pinia": "^2.0.14",
1313
"vant": "^3.4.9",
14+
"vconsole": "^3.14.6",
1415
"vue": "^3.2.25"
1516
},
1617
"devDependencies": {

src/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ import { createPinia } from 'pinia'
66
import '@vant/touch-emulator'
77
import { Button } from 'vant'
88

9+
// debugger board
10+
import VConsole from 'vconsole'
11+
const vConsole = new VConsole({ theme: 'dark' })
12+
13+
// 结束调试后,可移除掉
14+
// vConsole.destroy()
15+
16+
// vite-plugin-vconsole 社区版
17+
// https://github.com/vadxq/vite-plugin-vconsole
18+
919
createApp(App)
1020
.use(createPinia())
1121
.use(Button)

vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineConfig } from 'vite'
22
import vue from '@vitejs/plugin-vue'
33
import styleImport, { VantResolve } from 'vite-plugin-style-import'
4-
import pxtoviewport from 'postcss-px-to-viewport'
54

65
// https://vitejs.dev/config/
76
export default defineConfig({

yarn.lock

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.3.tgz#39e99c7b0c4c56cef4d1eed8de9f506411c2ebc2"
88
integrity sha512-rL50YcEuHbbauAFAysNsJA4/f89fGTOBRNs9P81sniKnKAr4xULe5AecolcsKbi88xu0ByWYDj/S1AJ3FSFuSQ==
99

10+
"@babel/runtime@^7.17.2":
11+
version "7.18.3"
12+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.3.tgz#c7b654b57f6f63cf7f8b418ac9ca04408c4579f4"
13+
integrity sha512-38Y8f7YUhce/K7RMwTp7m0uCumpv9hZkitCbBClqQIow1qSbCvGkcegKOXpEWCQLfWmevgRiWokZ1GkpfhbZug==
14+
dependencies:
15+
regenerator-runtime "^0.13.4"
16+
1017
"@csstools/postcss-cascade-layers@^1.0.1":
1118
version "1.0.2"
1219
resolved "https://registry.yarnpkg.com/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.0.2.tgz#7c48b5f773c4cdcdc6b57d6099fbdc2332e12219"
@@ -345,6 +352,16 @@ copy-anything@^2.0.1:
345352
dependencies:
346353
is-what "^3.14.1"
347354

355+
copy-text-to-clipboard@^3.0.1:
356+
version "3.0.1"
357+
resolved "https://registry.yarnpkg.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz#8cbf8f90e0a47f12e4a24743736265d157bce69c"
358+
integrity sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q==
359+
360+
core-js@^3.11.0:
361+
version "3.22.7"
362+
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.22.7.tgz#8d6c37f630f6139b8732d10f2c114c3f1d00024f"
363+
integrity sha512-Jt8SReuDKVNZnZEzyEQT5eK6T2RRCXkfTq7Lo09kpm+fHjgGewSbNjV+Wt4yZMhPDdzz2x1ulI5z/w4nxpBseg==
364+
348365
css-blank-pseudo@^3.0.3:
349366
version "3.0.3"
350367
resolved "https://registry.yarnpkg.com/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz#36523b01c12a25d812df343a32c322d2a2324561"
@@ -685,6 +702,11 @@ ms@^2.1.1:
685702
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
686703
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
687704

705+
mutation-observer@^1.0.3:
706+
version "1.0.3"
707+
resolved "https://registry.yarnpkg.com/mutation-observer/-/mutation-observer-1.0.3.tgz#42e9222b101bca82e5ba9d5a7acf4a14c0f263d0"
708+
integrity sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA==
709+
688710
nanoid@^3.3.4:
689711
version "3.3.4"
690712
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
@@ -1045,6 +1067,11 @@ prr@~1.0.1:
10451067
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
10461068
integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY=
10471069

1070+
regenerator-runtime@^0.13.4:
1071+
version "0.13.9"
1072+
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
1073+
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
1074+
10481075
resolve@^1.22.0:
10491076
version "1.22.0"
10501077
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198"
@@ -1156,6 +1183,16 @@ vant@^3.4.9:
11561183
"@vant/popperjs" "^1.1.0"
11571184
"@vant/use" "^1.3.6"
11581185

1186+
vconsole@^3.14.6:
1187+
version "3.14.6"
1188+
resolved "https://registry.yarnpkg.com/vconsole/-/vconsole-3.14.6.tgz#74cbbf9c14e66d26325958cee8a9e8c4086a5115"
1189+
integrity sha512-8Ffk2SfNe6EzKqZ0aNnNjpAVBVT7zgJo81lYEJdKySYLVYBeSawdSkWi9fSjDg3WsQhgS1vNPmRqJDTuwdVbnQ==
1190+
dependencies:
1191+
"@babel/runtime" "^7.17.2"
1192+
copy-text-to-clipboard "^3.0.1"
1193+
core-js "^3.11.0"
1194+
mutation-observer "^1.0.3"
1195+
11591196
vite-plugin-style-import@1.4.1:
11601197
version "1.4.1"
11611198
resolved "https://registry.yarnpkg.com/vite-plugin-style-import/-/vite-plugin-style-import-1.4.1.tgz#47a66920cce5484640f2faacd73190aac0b91b94"

0 commit comments

Comments
 (0)