Fix hot-reload: nodemon only restarts backend (1-2s), client builds separately
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"watch": ["server.js", "client/src"],
|
||||
"ext": "js,ts,tsx,jsx,css,json",
|
||||
"exec": "npm run build && node server.js"
|
||||
"watch": ["server.js"],
|
||||
"ext": "js,json",
|
||||
"exec": "node server.js"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user