mirror of
https://github.com/SomboChea/ui
synced 2026-01-20 01:55:56 +07:00
* fix: correctly load font files - closes #128 * Resolve issue with the moduleNameWrapper in Jest
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
ffc97c373c
commit
f61913c2d3
@@ -10,7 +10,7 @@ import Header from '../components/Header';
|
|||||||
import { Container, Content } from '../components/Layout';
|
import { Container, Content } from '../components/Layout';
|
||||||
import RouterApp from '../router';
|
import RouterApp from '../router';
|
||||||
import API from '../utils/api';
|
import API from '../utils/api';
|
||||||
import '../styles/typeface-roboto.css';
|
import 'typeface-roboto/index.css';
|
||||||
import '../utils/styles/global';
|
import '../utils/styles/global';
|
||||||
import 'normalize.css';
|
import 'normalize.css';
|
||||||
import Footer from '../components/Footer';
|
import Footer from '../components/Footer';
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
@import '~typeface-roboto';
|
|
||||||
@@ -66,7 +66,7 @@ module.exports = {
|
|||||||
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
||||||
loader: 'url-loader',
|
loader: 'url-loader',
|
||||||
options: {
|
options: {
|
||||||
name: 'fonts/[name].[ext]',
|
name: '/fonts/[name].[ext]',
|
||||||
limit: 50,
|
limit: 50,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user