修复图片资源问题

This commit is contained in:
maojindao55
2025-02-18 17:41:39 +08:00
parent 23295926aa
commit ad2b69f8dd
3 changed files with 253 additions and 19 deletions

View File

@@ -1,16 +1,16 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
import copy from 'vite-plugin-copy'
import copy from 'rollup-plugin-copy'
export default defineConfig({
plugins: [
react(),
copy({
patterns: [
targets: [
{
from: 'assets', // 源目录
to: 'dist/assets' // 目标目录
src: 'assets', // 源目录
dest: 'dist' // 目标目录
}
]
})