🐛 fix: vite.config.ts

This commit is contained in:
frostime 2024-01-23 22:03:34 +08:00
parent 881ff608b0
commit 90b2805d9e

View file

@ -34,6 +34,14 @@ export default defineConfig({
{ {
src: "./plugin.json", src: "./plugin.json",
dest: "./", dest: "./",
},
{
src: "./preview.png",
dest: "./",
},
{
src: "./icon.png",
dest: "./",
} }
], ],
}), }),
@ -79,7 +87,7 @@ export default defineConfig({
name: 'watch-external', name: 'watch-external',
async buildStart() { async buildStart() {
const files = await fg([ const files = await fg([
'public/**', 'public/i18n/**',
'./README*.md', './README*.md',
'./plugin.json' './plugin.json'
]); ]);