Larry Maccherone's fork of James Halliday fileify browserify middleware
var express = ; // or connect, whatevsvar app = express;var fileify = ;var bundle = ;bundle;app
Make the files in
dir available through
require(name) will then return the files hashed by filename.
fileify will do a recursive traversal of
dir and return all the files
except for hidden ones unless you specify a callback for
Returns a middleware function with a '.end()' function to stop all the watches in watch mode.
opts can have:
watch - if true, update the fileified bundle when files change
extension - a filter function, regexp, string extension, or array of extensions to limit extensions to
If opts is not an object and not an array it will be interpreted as the extension.
var express = ;var app = express;app;app;console;var browserify = ;var bundle =;app;var fileify = ;bundle;
With npm do:
npm install fileify