You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ npx create-react-app --info
npx: installed 67 in 8.4s
Environment:
OS: Linux 4.4
Node: 10.4.1
Yarn: 0.17.10
npm: 6.1.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.4.1 => 16.4.1
react-dom: ^16.4.1 => 16.4.1
react-scripts: ^2.0.0-next.3e165448 => 2.0.0-next.3e165448
Steps to Reproduce
I used react-scripts@2.0.0-next.3e165448 and tried to add a font from npm (typeface-aguafina-script). After building the app and looking at it in the browser, the default browser font is used. In development mode the Font is displayed correctly.
With import 'typeface-aguafina-script'; I imported the font in index.js and set font-family: 'Aguafina Script'; in the body section of my index.css
Is this a bug report?
yes
Did you try recovering your dependencies?
yes
Which terms did you search for in User Guide?
Fonts
Environment
Steps to Reproduce
I used react-scripts@2.0.0-next.3e165448 and tried to add a font from npm (
typeface-aguafina-script
). After building the app and looking at it in the browser, the default browser font is used. In development mode the Font is displayed correctly.With
import 'typeface-aguafina-script';
I imported the font inindex.js
and setfont-family: 'Aguafina Script';
in the body section of myindex.css
Development:
Production:
Expected Behavior
In development mode you can see the font Aguafina Script. I expect that after building the app, i should also see the font.
Actual Behavior
CRA builds the app correctly and copies the fonts into
build/static/media
. however, the generated filebuild/static/css/vendors.[hash].chunk.css
is empty.Development:
Production:
Reproducible Demo
I included the build folder in my test repository, too.
The text was updated successfully, but these errors were encountered: