j0hnsmith / django-pipeline-browserify

MIT License
37 stars 18 forks source link

Processing entry-point dependencies. #5

Closed furious-luke closed 8 years ago

furious-luke commented 9 years ago

Hello! I noticed that the compiler would not run when a dependent JS file which is required in the entry-point file was modified, meaning the browserified output would be incorrect until the entry-point file itself was modified.

I've just modified the is_outdated method to generate a list of dependencies and check if any of them are out of date as compared to the compiled browserified file.

One thing to note is that it may very well be the case that the command to generate the list of dependencies takes just as long as actually compiling, which would mean we could simply force a recompile every time and it would take the same amount of time. Given that, it may not actually be worth while merging this pull request in, I just though I'd open it and give you the opportunity to do so if you wished.

Thanks!

j0hnsmith commented 8 years ago

Can you rebase to resolve the conflicts, then I'm happy to merge. Thanks

furious-luke commented 8 years ago

Okay, conflicts have been resolved.