Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use webpack_static for loading generated favicons from assets

weronkaa82d92bf785f
diff --git a/templates/favicon.html b/templates/favicon.html
index 0bb4cc011d..b1d1dff25e 100644
--- a/templates/favicon.html
+++ b/templates/favicon.html
@@ -1,31 +1,31 @@
-{% load staticfiles %}
+{% load webpack_static from webpack_loader %}
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#fff">
<meta name="application-name" content="favicons-webpack-plugin">
-<link rel="apple-touch-icon" sizes="57x57" href="{% static "assets/favicons/apple-touch-icon-57x57.png" %}">
-<link rel="apple-touch-icon" sizes="60x60" href="{% static "assets/favicons/apple-touch-icon-60x60.png" %}">
-<link rel="apple-touch-icon" sizes="72x72" href="{% static "assets/favicons/apple-touch-icon-72x72.png" %}">
-<link rel="apple-touch-icon" sizes="76x76" href="{% static "assets/favicons/apple-touch-icon-76x76.png" %}">
-<link rel="apple-touch-icon" sizes="114x114" href="{% static "assets/favicons/apple-touch-icon-114x114.png" %}">
-<link rel="apple-touch-icon" sizes="120x120" href="{% static "assets/favicons/apple-touch-icon-120x120.png" %}">
-<link rel="apple-touch-icon" sizes="144x144" href="{% static "assets/favicons/apple-touch-icon-144x144.png" %}">
-<link rel="apple-touch-icon" sizes="152x152" href="{% static "assets/favicons/apple-touch-icon-152x152.png" %}">
-<link rel="apple-touch-icon" sizes="180x180" href="{% static "assets/favicons/apple-touch-icon-180x180.png" %}">
+<link rel="apple-touch-icon" sizes="57x57" href="{% webpack_static "favicons/apple-touch-icon-57x57.png" %}">
+<link rel="apple-touch-icon" sizes="60x60" href="{% webpack_static "favicons/apple-touch-icon-60x60.png" %}">
+<link rel="apple-touch-icon" sizes="72x72" href="{% webpack_static "favicons/apple-touch-icon-72x72.png" %}">
+<link rel="apple-touch-icon" sizes="76x76" href="{% webpack_static "favicons/apple-touch-icon-76x76.png" %}">
+<link rel="apple-touch-icon" sizes="114x114" href="{% webpack_static "favicons/apple-touch-icon-114x114.png" %}">
+<link rel="apple-touch-icon" sizes="120x120" href="{% webpack_static "favicons/apple-touch-icon-120x120.png" %}">
+<link rel="apple-touch-icon" sizes="144x144" href="{% webpack_static "favicons/apple-touch-icon-144x144.png" %}">
+<link rel="apple-touch-icon" sizes="152x152" href="{% webpack_static "favicons/apple-touch-icon-152x152.png" %}">
+<link rel="apple-touch-icon" sizes="180x180" href="{% webpack_static "favicons/apple-touch-icon-180x180.png" %}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="favicons-webpack-plugin">
-<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="{% static "assets/favicons/apple-touch-startup-image-320x460.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="{% static "assets/favicons/apple-touch-startup-image-640x920.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="{% static "assets/favicons/apple-touch-startup-image-640x1096.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="{% static "assets/favicons/apple-touch-startup-image-750x1294.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" href="{% static "assets/favicons/apple-touch-startup-image-1182x2208.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" href="{% static "assets/favicons/apple-touch-startup-image-1242x2148.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="{% static "assets/favicons/apple-touch-startup-image-748x1024.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="{% static "assets/favicons/apple-touch-startup-image-768x1004.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="{% static "assets/favicons/apple-touch-startup-image-1496x2048.png" %}">
-<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="{% static "assets/favicons/apple-touch-startup-image-1536x2008.png" %}">
-<link rel="icon" type="image/png" sizes="32x32" href="{% static "assets/favicons/favicon-32x32.png" %}">
-<link rel="icon" type="image/png" sizes="192x192" href="{% static "assets/favicons/android-chrome-192x192.png" %}">
-<link rel="icon" type="image/png" sizes="16x16" href="{% static "assets/favicons/favicon-16x16.png" %}">
-<link rel="shortcut icon" href="{% static "assets/favicons/favicon.ico" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="{% webpack_static "favicons/apple-touch-startup-image-320x460.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="{% webpack_static "favicons/apple-touch-startup-image-640x920.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="{% webpack_static "favicons/apple-touch-startup-image-640x1096.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="{% webpack_static "favicons/apple-touch-startup-image-750x1294.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" href="{% webpack_static "favicons/apple-touch-startup-image-1182x2208.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" href="{% webpack_static "favicons/apple-touch-startup-image-1242x2148.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="{% webpack_static "favicons/apple-touch-startup-image-748x1024.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="{% webpack_static "favicons/apple-touch-startup-image-768x1004.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="{% webpack_static "favicons/apple-touch-startup-image-1496x2048.png" %}">
+<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="{% webpack_static "favicons/apple-touch-startup-image-1536x2008.png" %}">
+<link rel="icon" type="image/png" sizes="32x32" href="{% webpack_static "favicons/favicon-32x32.png" %}">
+<link rel="icon" type="image/png" sizes="192x192" href="{% webpack_static "favicons/android-chrome-192x192.png" %}">
+<link rel="icon" type="image/png" sizes="16x16" href="{% webpack_static "favicons/favicon-16x16.png" %}">
+<link rel="shortcut icon" href="{% webpack_static "favicons/favicon.ico" %}">