From: Guillaume Pellerin Date: Mon, 28 Jun 2021 12:53:06 +0000 (+0200) Subject: add lazy version to app.css built by webpack X-Git-Tag: 2.1~25 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4be3caeb903b60999eccb4687a96a9a2ad8782d4;p=teleforma.git add lazy version to app.css built by webpack --- diff --git a/teleforma/templatetags/webpack.py b/teleforma/templatetags/webpack.py index e24a4a43..b3e947a0 100644 --- a/teleforma/templatetags/webpack.py +++ b/teleforma/templatetags/webpack.py @@ -1,6 +1,7 @@ import requests from django import template from django.conf import settings +import teleforma register = template.Library() @@ -25,7 +26,9 @@ def webpack(bundle): except requests.ConnectionError: pass + url += '?v=' + teleforma.__version__ + return { 'is_css': is_css, 'url': url - } \ No newline at end of file + }