Skip to content

Commit

Permalink
fix: 更换plugin.json的位置
Browse files Browse the repository at this point in the history
  • Loading branch information
svchord committed Jan 23, 2024
1 parent c459404 commit 4869cd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
File renamed without changes.
7 changes: 5 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export default defineConfig({
],
}),
viteStaticCopy({
targets: [{ src: './README*.md', dest: './' }],
targets: [
{ src: './README*.md', dest: './' },
{ src: './plugin.json', dest: './' },
],
}),
],
resolve: {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4869cd5

Please sign in to comment.