I have a problem with render_bundle serving old JS file after some time. Nothing I try to do helps. I see that the file being served is different than the one in webpack-stats.json.
The only thing I am able to do to make it work again is restarting my docker container 🙁
This is my config:
WEBPACK_LOADER = {
'DEFAULT': {
'BUNDLE_DIR_NAME': 'jsapp/compiled/',
'POLL_INTERVAL': 0.5,
'TIMEOUT': 5,
}
}
And I just simply use this in my html template:
{% load render_bundle from webpack_loader %}
{% render_bundle 'app' 'js' %}