]> git.parisson.com Git - teleforma.git/commitdiff
add lazy version to app.css built by webpack
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 28 Jun 2021 12:53:06 +0000 (14:53 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 28 Jun 2021 12:53:32 +0000 (14:53 +0200)
teleforma/templatetags/webpack.py

index e24a4a43bf4566dec2e4a209a7d0e7f294cd1b22..b3e947a0ab5cdbca9f1944d0406e9601d6dc7ad1 100644 (file)
@@ -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
+    }