fix Base.global fonts
This commit is contained in:
parent
5ec91c7275
commit
ff83b4990f
@ -63,9 +63,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
test: /js?$/,
|
test: /js?$/,
|
||||||
loaders: [
|
loader: 'babel-loader',
|
||||||
'babel-loader'
|
|
||||||
],
|
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
include: [
|
include: [
|
||||||
FRONTEND,
|
FRONTEND,
|
||||||
@ -73,12 +71,10 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
}, {
|
}, {
|
||||||
test: /\.svg/,
|
test: /\.svg/,
|
||||||
loader: [
|
loader: 'file-loader',
|
||||||
'file-loader'
|
|
||||||
],
|
|
||||||
exclude: [
|
exclude: [
|
||||||
/node_modules/,
|
/node_modules/,
|
||||||
path.join(UI, 'shared', 'fonts')
|
path.join(UI, 'assets', 'fonts')
|
||||||
],
|
],
|
||||||
include: [
|
include: [
|
||||||
FRONTEND,
|
FRONTEND,
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
}]
|
}]
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"inline-react-svg",
|
|
||||||
"transform-class-properties",
|
"transform-class-properties",
|
||||||
["transform-object-rest-spread", {
|
["transform-object-rest-spread", {
|
||||||
"useBuiltIns": true
|
"useBuiltIns": true
|
||||||
|
@ -42,7 +42,7 @@ install-production: compile
|
|||||||
compile: install
|
compile: install
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
cp -R src/. 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
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
|
@ -70,6 +70,7 @@ const fontFaces = fonts.map(({
|
|||||||
url('${filenames.svg}#${family}') format('svg');
|
url('${filenames.svg}#${family}') format('svg');
|
||||||
font-weight: ${weight};
|
font-weight: ${weight};
|
||||||
font-style: ${style};
|
font-style: ${style};
|
||||||
|
}
|
||||||
`);
|
`);
|
||||||
|
|
||||||
export default css`
|
export default css`
|
||||||
|
Loading…
Reference in New Issue
Block a user