Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit f61913c

Browse files
DanielRufjuanpicado
authored andcommitted
fix: correctly load font files - closes #128 (#134)
* fix: correctly load font files - closes #128 * Resolve issue with the moduleNameWrapper in Jest
1 parent ffc97c3 commit f61913c

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/App/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Header from '../components/Header';
1010
import { Container, Content } from '../components/Layout';
1111
import RouterApp from '../router';
1212
import API from '../utils/api';
13-
import '../styles/typeface-roboto.css';
13+
import 'typeface-roboto/index.css';
1414
import '../utils/styles/global';
1515
import 'normalize.css';
1616
import Footer from '../components/Footer';

src/styles/typeface-roboto.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = {
6666
test: /\.(woff|woff2|eot|ttf|otf)$/,
6767
loader: 'url-loader',
6868
options: {
69-
name: 'fonts/[name].[ext]',
69+
name: '/fonts/[name].[ext]',
7070
limit: 50,
7171
},
7272
},

0 commit comments

Comments
 (0)