Browse Source

Fix font loading in builded Windows version

master
meriadec 7 years ago
parent
commit
04d8e9c0b6
  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