add public img
This commit is contained in:
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 186 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
@@ -1,19 +1,10 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import copy from 'rollup-plugin-copy'
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react()
|
||||||
copy({
|
|
||||||
targets: [
|
|
||||||
{
|
|
||||||
src: 'img', // 源目录
|
|
||||||
dest: 'dist/img' // 目标目录
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
|
||||||
],
|
],
|
||||||
base: '/',
|
base: '/',
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
Reference in New Issue
Block a user