Hi there,
I am running into this issue again and again but am confident that I am doing everything by the book…
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: url('../fonts/open-sans-v15-latin-regular.eot');
src:
local('Open Sans Regular'),
local('OpenSans-Regular'),
url('../fonts/open-sans-v15-latin-regular.eot?#iefix') format('embedded-opentype'),
url('../fonts/open-sans-v15-latin-regular.woff2') format('woff2'),
url('../fonts/open-sans-v15-latin-regular.woff') format('woff'),
url('../fonts/open-sans-v15-latin-regular.ttf') format('truetype'),
url('../fonts/open-sans-v15-latin-regular.svg#OpenSans') format('svg');
}
After building this returns a 404 for the fonts like this:
http://example.com/app/themes/example/dist/styles/app/themes/example/dist/fonts/open-sans-v15-latin-regular.woff2
Obviously there is something wrong with how the relative URL is being resolved but why / where is this happening and how can I fix that?
The other directives for images (like url('../images/icons/slider-arrow-white.svg');
) also fail…
Thanks for your insights!