Sending whole folder content to client with express
问题 I made an html5 game (using GameMaker), which is constituted of an index.html and a folder "html5game" that contains the dependencies of the game - the javascript code and the resources. The problem is the resources are quite numerous and diverse (sounds, sprites, etc.) and The client needs them all to play. I am looking for a way to send them all without naming them specifically. I tried the glob module : var glob = require( 'glob' ); var files = glob.sync( './html5game/**' ).forEach(