j0hnsmith / django-pipeline-browserify

MIT License
37 stars 18 forks source link

fixed the recompile all the time issue #4

Closed dwetterau closed 9 years ago

dwetterau commented 9 years ago

I was using this library and noticed that it was reconstructing the bundle on every page load while in DEBUG mode. I added this change (inspired by the code in the django-pipeline repo: https://github.com/cyberdelia/django-pipeline/blob/master/pipeline/compilers/es6.py#L14) and it fixes the issue.

When the files are edited, the next page load will cause the bundle to be reconstructed correctly.

Cheers, David