-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot reload when dev mode #12
Labels
good first issue
Good for newcomers
Comments
Let me work on this ASAP |
PS: your command "yarn compile:watch" maybe wrong when include "src". Could you please elaborate on this |
OK. I got it |
saisilinus
added a commit
that referenced
this issue
Apr 26, 2022
add hot reloading to compile ts in watch mode while server is running Hot reload when dev mode #12
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think maybe use should add a package "concurrently" as devDependencies.
And change dev script like this to achieve Hot Reload as dev script.
PS: your command "yarn compile:watch" maybe wrong when include "src".
`"dev": "concurrently "yarn compile:watch" "yarn pre:dev"",
"pre:dev": "cross-env NODE_ENV=development nodemon --experimental-modules --es-module-specifier-resolution=node dist/index.js",
"compile:watch": "tsc --build --watch",`
The text was updated successfully, but these errors were encountered: