mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
fix Base.global fonts
This commit is contained in:
parent
5ec91c7275
commit
ff83b4990f
@ -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,
|
||||
|
@ -12,7 +12,6 @@
|
||||
}]
|
||||
],
|
||||
"plugins": [
|
||||
"inline-react-svg",
|
||||
"transform-class-properties",
|
||||
["transform-object-rest-spread", {
|
||||
"useBuiltIns": true
|
||||
|
@ -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:
|
||||
|
@ -70,6 +70,7 @@ const fontFaces = fonts.map(({
|
||||
url('${filenames.svg}#${family}') format('svg');
|
||||
font-weight: ${weight};
|
||||
font-style: ${style};
|
||||
}
|
||||
`);
|
||||
|
||||
export default css`
|
||||
|
Loading…
Reference in New Issue
Block a user