react-redux-starter-kit
react-redux-starter-kit copied to clipboard
sass loader & fonts
New fonts are not working in safari or chrome. Working fine in firefox. Not sure why... When final css is genarated there are no quotes around font name, perhaps this can be an issue
$font-directory: '../static/fonts';
@font-face {
font-family: 'open_sansregular';
src: url('#{$font-directory}/open-sans.regular-webfont.eot');
src: url('#{$font-directory}/open-sans.regular-webfont.eot?#iefix') format('embedded-opentype'),
url('#{$font-directory}/open-sans.regular-webfont.woff2') url('#{$font-directory}/open-sans.regular-webfont.woff'),
format('woff2') format('woff'),
url('#{$font-directory}/open-sans.regular-webfont.ttf') format('truetype'),
url('#{$font-directory}/open-sans.regular-webfont.svg#open_sansregular') format('svg');
font-weight: normal;
font-style: normal;
}
loading this font core.scss
oh the porblem was with font weights. all good now, cheers