Add file-loader to Karma so assets will resolve in tests

This commit is contained in:
J. Ryan Stinnett
2019-01-18 10:55:00 -06:00
parent 20e296b20e
commit 8b05cca7d2
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -168,6 +168,10 @@ module.exports = function (config) {
path.resolve('./test'),
]
},
{
test: /\.(gif|png|svg|ttf)$/,
loader: 'file-loader',
},
],
noParse: [
// for cross platform compatibility use [\\\/] as the path separator