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
1 changed files with 15 additions and 4 deletions

View File

@ -71,8 +71,20 @@ module.exports = {
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)$/,
loader: 'file-loader',
// XXX: By commenting this out, production "BUILD=production make compile"
@ -80,8 +92,7 @@ module.exports = {
//
// exclude: /node_modules/,
include: [
FRONTEND,
UI
path.join(UI, 'shared', 'fonts')
],
},
{