Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[PATCH] Shopware - Remove shopware-revision from font links
diff --git a/themes/Frontend/Responsive/frontend/_public/src/less/_components/fonts.less b/themes/Frontend/Responsive/frontend/_public/src/less/_components/fonts.less
index b582c292da..e66d142be9 100644
--- a/themes/Frontend/Responsive/frontend/_public/src/less/_components/fonts.less
+++ b/themes/Frontend/Responsive/frontend/_public/src/less/_components/fonts.less
@@ -6,9 +6,9 @@
font-display: swap;
src: local('Open Sans Light'),
local('OpenSans-Light'),
- url('@{OpenSansPath}/Light/OpenSans-Light.woff2?@{shopware-revision}') format('woff2'),
- url('@{OpenSansPath}/Light/OpenSans-Light.woff?@{shopware-revision}') format('woff'),
- url('@{OpenSansPath}/Light/OpenSans-Light.ttf?@{shopware-revision}') format('truetype');
+ url('@{OpenSansPath}/Light/OpenSans-Light.woff2') format('woff2'),
+ url('@{OpenSansPath}/Light/OpenSans-Light.woff') format('woff'),
+ url('@{OpenSansPath}/Light/OpenSans-Light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}
@@ -20,9 +20,9 @@
font-display: swap;
src: local('Open Sans Regular'),
local('Open Sans'),
- url('@{OpenSansPath}/Regular/OpenSans-Regular.woff2?@{shopware-revision}') format('woff2'),
- url('@{OpenSansPath}/Regular/OpenSans-Regular.woff?@{shopware-revision}') format('woff'),
- url('@{OpenSansPath}/Regular/OpenSans-Regular.ttf?@{shopware-revision}') format('truetype');
+ url('@{OpenSansPath}/Regular/OpenSans-Regular.woff2') format('woff2'),
+ url('@{OpenSansPath}/Regular/OpenSans-Regular.woff') format('woff'),
+ url('@{OpenSansPath}/Regular/OpenSans-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@@ -34,9 +34,9 @@
font-display: swap;
src: local('Open Sans Semibold'),
local('OpenSans-SemiBold'),
- url('@{OpenSansPath}/Semibold/OpenSans-Semibold.woff2?@{shopware-revision}') format('woff2'),
- url('@{OpenSansPath}/Semibold/OpenSans-Semibold.woff?@{shopware-revision}') format('woff'),
- url('@{OpenSansPath}/Semibold/OpenSans-Semibold.ttf?@{shopware-revision}') format('truetype');
+ url('@{OpenSansPath}/Semibold/OpenSans-Semibold.woff2') format('woff2'),
+ url('@{OpenSansPath}/Semibold/OpenSans-Semibold.woff') format('woff'),
+ url('@{OpenSansPath}/Semibold/OpenSans-Semibold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}
@@ -48,9 +48,9 @@
font-display: swap;
src: local('Open Sans Bold'),
local('OpenSans-Bold'),
- url('@{OpenSansPath}/Bold/OpenSans-Bold.woff2?@{shopware-revision}') format('woff2'),
- url('@{OpenSansPath}/Bold/OpenSans-Bold.woff?@{shopware-revision}') format('woff'),
- url('@{OpenSansPath}/Bold/OpenSans-Bold.ttf?@{shopware-revision}') format('truetype');
+ url('@{OpenSansPath}/Bold/OpenSans-Bold.woff2') format('woff2'),
+ url('@{OpenSansPath}/Bold/OpenSans-Bold.woff') format('woff'),
+ url('@{OpenSansPath}/Bold/OpenSans-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@@ -62,9 +62,9 @@
font-display: swap;
src: local('Open Sans ExtraBold'),
local('OpenSans-ExtraBold'),
- url('@{OpenSansPath}/ExtraBold/OpenSans-ExtraBold.woff2?@{shopware-revision}') format('woff2'),
- url('@{OpenSansPath}/ExtraBold/OpenSans-ExtraBold.woff?@{shopware-revision}') format('woff'),
- url('@{OpenSansPath}/ExtraBold/OpenSans-ExtraBold.ttf?@{shopware-revision}') format('truetype');
+ url('@{OpenSansPath}/ExtraBold/OpenSans-ExtraBold.woff2') format('woff2'),
+ url('@{OpenSansPath}/ExtraBold/OpenSans-ExtraBold.woff') format('woff'),
+ url('@{OpenSansPath}/ExtraBold/OpenSans-ExtraBold.ttf') format('truetype');
font-weight: 800;
font-style: normal;
}
diff --git a/themes/Frontend/Responsive/frontend/_public/src/less/_components/icon-set.less b/themes/Frontend/Responsive/frontend/_public/src/less/_components/icon-set.less
index fbba9346c5..61844ead78 100644
--- a/themes/Frontend/Responsive/frontend/_public/src/less/_components/icon-set.less
+++ b/themes/Frontend/Responsive/frontend/_public/src/less/_components/icon-set.less
@@ -1293,9 +1293,9 @@ Example: `<i class="icon--cart"></i>`
font-family: @sw-icon-fontname;
font-display: block;
src:url('@{font-directory}/shopware.woff2?#@{shopware-revision}') format('woff2'),
- url('@{font-directory}/shopware.woff?@{shopware-revision}') format('woff'),
- url('@{font-directory}/shopware.ttf?@{shopware-revision}') format('truetype'),
- url('@{font-directory}/shopware.svg?@{shopware-revision}') format('svg');
+ url('@{font-directory}/shopware.woff') format('woff'),
+ url('@{font-directory}/shopware.ttf') format('truetype'),
+ url('@{font-directory}/shopware.svg') format('svg');
font-weight: normal;
font-style: normal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment