1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-05 06:04:28 +07:00

fix: correctly load font files - closes #128 (#134)

* fix: correctly load font files - closes #128

* Resolve issue with the moduleNameWrapper in Jest
This commit is contained in:
Daniel Ruf 2019-09-29 16:36:38 +02:00 committed by Juan Picado @jotadeveloper
parent ffc97c373c
commit f61913c2d3
3 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import Header from '../components/Header';
import { Container, Content } from '../components/Layout';
import RouterApp from '../router';
import API from '../utils/api';
import '../styles/typeface-roboto.css';
import 'typeface-roboto/index.css';
import '../utils/styles/global';
import 'normalize.css';
import Footer from '../components/Footer';

View File

@ -1 +0,0 @@
@import '~typeface-roboto';

View File

@ -66,7 +66,7 @@ module.exports = {
test: /\.(woff|woff2|eot|ttf|otf)$/,
loader: 'url-loader',
options: {
name: 'fonts/[name].[ext]',
name: '/fonts/[name].[ext]',
limit: 50,
},
},