fix Base.global fonts

This commit is contained in:
Sérgio Ramos 2017-02-24 13:29:50 +00:00
parent 5ec91c7275
commit ff83b4990f
4 changed files with 5 additions and 9 deletions

View File

@ -63,9 +63,7 @@ module.exports = {
}
}, {
test: /js?$/,
loaders: [
'babel-loader'
],
loader: 'babel-loader',
exclude: /node_modules/,
include: [
FRONTEND,
@ -73,12 +71,10 @@ module.exports = {
],
}, {
test: /\.svg/,
loader: [
'file-loader'
],
loader: 'file-loader',
exclude: [
/node_modules/,
path.join(UI, 'shared', 'fonts')
path.join(UI, 'assets', 'fonts')
],
include: [
FRONTEND,

View File

@ -12,7 +12,6 @@
}]
],
"plugins": [
"inline-react-svg",
"transform-class-properties",
["transform-object-rest-spread", {
"useBuiltIns": true

View File

@ -42,7 +42,7 @@ install-production: compile
compile: install
mkdir -p dist
cp -R src/. dist/.
$(bindir)/babel src --out-dir dist --source-maps inline
$(bindir)/babel src --out-dir dist --source-maps inline --plugins=inline-react-svg
.PHONY: build
build:

View File

@ -70,6 +70,7 @@ const fontFaces = fonts.map(({
url('${filenames.svg}#${family}') format('svg');
font-weight: ${weight};
font-style: ${style};
}
`);
export default css`