From 4869cd58e284a297b09458756b8768c062d1ab8b Mon Sep 17 00:00:00 2001 From: Seven Chord Date: Tue, 23 Jan 2024 20:56:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=8D=A2plugin.json=E7=9A=84?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/plugin.json => plugin.json | 0 vite.config.ts | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename public/plugin.json => plugin.json (100%) diff --git a/public/plugin.json b/plugin.json similarity index 100% rename from public/plugin.json rename to plugin.json diff --git a/vite.config.ts b/vite.config.ts index ca642fc..af743f6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,7 +34,10 @@ export default defineConfig({ ], }), viteStaticCopy({ - targets: [{ src: './README*.md', dest: './' }], + targets: [ + { src: './README*.md', dest: './' }, + { src: './plugin.json', dest: './' }, + ], }), ], resolve: { @@ -78,7 +81,7 @@ export default defineConfig({ //监听静态资源文件 name: 'watch-external', async buildStart() { - const files = await fg(['public/**', './README*.md']); + const files = await fg(['public/**', './README*.md', './plugin.json']); for (const file of files) { this.addWatchFile(file); }