jsdf / browserify-incremental

incremental rebuild for browserify
175 stars 13 forks source link

Ability to pass updated file to avoid mtime checks #16

Closed alihammad-gist closed 9 years ago

alihammad-gist commented 9 years ago

It would be nice to pass in the command line the file(s) which have updated to avoid any cache checks at all, for faster bundling.

browserifyinc build/main.js -o public/js/main.js --reload build/f1.js build/f2.js
jsdf commented 9 years ago

Perhaps, but it seems to me that caching with mtime invalidation is really the only benefit browserify-incremental provides. Your use case could be achieved by just using a thin wrapper around browserify which manages the cache opt which browserify takes in its constructor. If you know which files have changed, all you have to do is delete them from the cache opt object before bundling.

alihammad-gist commented 9 years ago

Thank you very much. I'd do as you suggested.