var mirror = ;// Mirror guesses the MIME type based on the first file's extension.var styles =__dirname + '/assets/main.css'__dirname + '/assets/layout.css';// Proving direct source input requires specifying the MIME type manually.var configuration =// Mirror automatically inserts line breaks and semicolons before/after// each item in a "js" type mirror.// You can add functions to the mirror. They will be called on each request.type: 'js'maxAge: 60 // Only cache configuration file for 60 seconds.;// Store the array of files and remove or add files on-the-fly.var files =requirerequirerequire// Add other mirrorsconfiguration;// Add the mirrors to your express server.app;app;app;
NOTE: Mirror loads the requested files from disk for every request. It is meant to run behind a reverse proxy that caches. You can control the cache time with
maxAge (in seconds) in the options hash.