Configure vite-plugin-static-copy for shared assets
This commit is contained in:
@@ -1,10 +1,23 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import tailwindcss from '@tailwindcss/vite';
|
import tailwindcss from '@tailwindcss/vite';
|
||||||
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
envDir: '../../',
|
envDir: '../../',
|
||||||
plugins: [react(), tailwindcss()],
|
plugins: [
|
||||||
|
react(),
|
||||||
|
tailwindcss(),
|
||||||
|
viteStaticCopy({
|
||||||
|
targets: [
|
||||||
|
{
|
||||||
|
src: path.resolve(__dirname, '../shared/sounds'),
|
||||||
|
dest: './'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
],
|
||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|||||||
Generated
+33
-2
@@ -6,7 +6,8 @@
|
|||||||
"": {
|
"": {
|
||||||
"name": "knot-messenger",
|
"name": "knot-messenger",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"apps/*"
|
"client-web",
|
||||||
|
"client-mobile"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^9.1.0"
|
"concurrently": "^9.1.0"
|
||||||
@@ -44,6 +45,36 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"apps/web": {
|
"apps/web": {
|
||||||
|
"name": "@knot/web",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"extraneous": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@emoji-mart/data": "^1.2.1",
|
||||||
|
"@emoji-mart/react": "^1.1.1",
|
||||||
|
"@microsoft/signalr": "^10.0.0",
|
||||||
|
"@tanstack/react-query": "^5.62.0",
|
||||||
|
"clsx": "^2.1.1",
|
||||||
|
"date-fns": "^4.1.0",
|
||||||
|
"emoji-mart": "^5.6.0",
|
||||||
|
"framer-motion": "^11.15.0",
|
||||||
|
"lucide-react": "^0.468.0",
|
||||||
|
"react": "^19.0.0",
|
||||||
|
"react-dom": "^19.0.0",
|
||||||
|
"react-easy-crop": "^5.5.6",
|
||||||
|
"socket.io-client": "^4.8.1",
|
||||||
|
"zustand": "^5.0.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@tailwindcss/vite": "^4.0.0",
|
||||||
|
"@types/react": "^19.0.0",
|
||||||
|
"@types/react-dom": "^19.0.0",
|
||||||
|
"@vitejs/plugin-react": "^4.3.4",
|
||||||
|
"tailwindcss": "^4.0.0",
|
||||||
|
"typescript": "^5.7.3",
|
||||||
|
"vite": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"client-web": {
|
||||||
"name": "@knot/web",
|
"name": "@knot/web",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -889,7 +920,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@knot/web": {
|
"node_modules/@knot/web": {
|
||||||
"resolved": "apps/web",
|
"resolved": "client-web",
|
||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
"node_modules/@microsoft/signalr": {
|
"node_modules/@microsoft/signalr": {
|
||||||
|
|||||||
Reference in New Issue
Block a user