Closed kendagriff closed 6 years ago
That is weird. Could you try using relative URLs and see if that fixes things? (ie. ../fonts/FiraSans-Extralight.eot
instead of /teachbanzai/fonts/FiraSans-Extralight.eot
.
Strange... returns the exact same error. I should have mentioned, this isn't actually the app's deployment when it happens, it's an error coming from our continuous delivery server as it runs our test suite. Is that part of the mystery, perhaps?
Quite possibly, but I can't conjure a possible explanation at this point. Does it work in dev? In prod? How are you referencing the font-file in the CSS?
@font-face {
font-family: 'Fira Sans';
font-weight: 200;
src: url("../fonts/FiraSans-Extralight.eot");
/* IE9 Compat Modes */
src: url("../fonts/FiraSans-Extralight.eot?#iefix") format("embedded-opentype"), url("../fonts/FiraSans-Extralight.woff2") format("woff2"), url("../fonts/FiraSans-Extralight.woff") format("woff");
}
The CSS is located at ./public/teachbanzai/css/style.css
and the fonts are in ./public/teachbanzai/fonts
.
I'll see if there isn't a way to replicate it outside my CI environment...
Yeah, that looks just like mine. One example:
@font-face{
font-family:'FontAwesome';
src:url('../font/fontawesome-webfont.eot');
src:url('../font/fontawesome-webfont.eot') format('embedded-opentype'),url('../font/fontawesome-webfont.woff') format('woff'),url('../font/fontawesome-webfont.ttf') format('truetype'),url('../font/fontawesome-webfont.svg') format('svg');
font-weight:normal;
font-style:normal
}
Sorry to pester you for a second time in a week. I suspect there's something wrong in my configuration:
The error is thrown in the build process, and it happens when I incorporate a CSS file as a bundle:
The font file is indeed there, and when style.css is used without optimus, the font file is found normally. Any thoughts?