Browse Source

Merge pull request #91 from meriadec/master

Fix font loading in builded Windows version
master
Loëck Vézien 7 years ago
committed by GitHub
parent
commit
b728f43fcf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/styles/helpers.js

2
src/styles/helpers.js

@ -21,7 +21,7 @@ export const fontFace = ({
}) => `
@font-face {
font-family: "${name}";
src: url("${__DEV__ ? '' : __static}/fonts/${file}.woff2") format("woff2");
src: url("${__DEV__ ? '' : __static.replace(/\\/g, '/')}/fonts/${file}.woff2") format("woff2");
font-style: ${style};
font-weight: ${weight};
}

Loading…
Cancel
Save