Closed maxnordlund closed 11 years ago
This allows everything except JSON, which, incidentally, browserify supports. I would accept something that added a grep
option that replaced the default isJS
regexp. Then you could do:
browserify.settings('grep', /\.coffee$|\.js$/)
Indeed this sound much better. Implemented it just now, and the tests are passing.
Looks good, I'm on holiday for the week at the moment, but I'll look at this as soon as so get back.
Merged manually (with some modification) via https://github.com/ForbesLindesay/browserify-middleware/commit/65631ea9b96891b0036941c4b54e83a8576bf40e
Instead of whitelisted extensions, aka .js|.ls|.coffee, use a blacklist. This allows the use of other languages then javascript to be served using browserify-middleware.