fixing bug in font loader. Including only UI font path, and adding new loader for SVG only

This commit is contained in:
Alex Windett 2017-02-01 15:12:17 +00:00
parent 299f7e2282
commit cf723f5010

View File

@ -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
], ],
}, },
{ {