TypeScript, express, node-dev *and* custom file type loader

213 views Asked by At

I want to write an node.js server using Express and TypeScript, but I also want to auto-restart (or better yet, hot-reload) it during development as I edit and I want to be able to import custom file types.

Webpack can do much of this, but it isn't particularly well-suited for server-side development. node-dev can handle server-restarts but doesn't play particularly nice with TS and custom loaders.

Is there any nice tooling for this particular setup?

1

There are 1 answers

3
Danizavtz On

Yes, it is. You can use nodemon for live reload from your server.

If you need some help doing that I have a lot of projects to show you how to do that.

You can use pure express and nodemon to achieve what you want.