fixing bug in font loader. Including only UI font path, and adding new loader for SVG only
This commit is contained in:
parent
299f7e2282
commit
cf723f5010
@ -71,8 +71,20 @@ module.exports = {
|
|||||||
loader: [
|
loader: [
|
||||||
'url-loader'
|
'url-loader'
|
||||||
]
|
]
|
||||||
},
|
}, {
|
||||||
{
|
test: /\.svg/,
|
||||||
|
exclude: [
|
||||||
|
/node_modules/,
|
||||||
|
path.join(UI, 'shared', 'fonts'),
|
||||||
|
],
|
||||||
|
include: [
|
||||||
|
FRONTEND,
|
||||||
|
UI
|
||||||
|
],
|
||||||
|
loader: [
|
||||||
|
'file-loader'
|
||||||
|
]
|
||||||
|
}, {
|
||||||
test: /\.(eot|svg|ttf|woff|woff2)$/,
|
test: /\.(eot|svg|ttf|woff|woff2)$/,
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
// XXX: By commenting this out, production "BUILD=production make compile"
|
// XXX: By commenting this out, production "BUILD=production make compile"
|
||||||
@ -80,8 +92,7 @@ module.exports = {
|
|||||||
//
|
//
|
||||||
// exclude: /node_modules/,
|
// exclude: /node_modules/,
|
||||||
include: [
|
include: [
|
||||||
FRONTEND,
|
path.join(UI, 'shared', 'fonts')
|
||||||
UI
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user