diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 63a0458c..e6bc1402 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,3 +15,9 @@ repos:
rev: 0.0.9
hooks:
- id: check_pdb_hook
+ - repo: local
+ hooks:
+ - id: build-js
+ name: build-js
+ entry: npm run babel
+ language: node
diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html
index 54376fa5..aef37f2a 100644
--- a/ereuse_devicehub/templates/inventory/device_list.html
+++ b/ereuse_devicehub/templates/inventory/device_list.html
@@ -466,5 +466,11 @@
perPage: 20
})
-
+{% if config['DEBUG'] %}
+
+{% else %}
+
+{% endif %}
+
+
{% endblock main %}