I am building one web application, nodejs is my webserver. I want to send response from nodejs for the images,html,css,js,other files.
I want to know which nodejs module is providing to serve my UI files without using fs module which is internally available in nodejs.
Constraint: If i use fs module or express which internally uses fs, if a new file is added it should be generated for the response.
Thanks
You can use Express/Connect static middleware:
But the best way is configuring nginx or similar frontend server to proxy dynamic requests to node.js and direct return static files.