Configure vite-plugin-static-copy for shared assets

This commit is contained in:
Халимов Рустам
2026-03-19 22:28:35 +03:00
parent 275aa0ee7d
commit 77912f2d88
2 changed files with 47 additions and 3 deletions
+14 -1
View File
@@ -1,10 +1,23 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import path from 'path';
export default defineConfig({
envDir: '../../',
plugins: [react(), tailwindcss()],
plugins: [
react(),
tailwindcss(),
viteStaticCopy({
targets: [
{
src: path.resolve(__dirname, '../shared/sounds'),
dest: './'
}
]
})
],
server: {
port: 5173,
proxy: {