Skip to content

Commit

Permalink
Adding conditional around loader string generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gannondigital committed Mar 3, 2017
1 parent a82bf27 commit 57e23a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ module.exports = function(source, sourceMap) {
if (typeof query[filePath] === 'object') {
var fileConfig = query[filePath];
var loaderStringForFile = fileConfig.loaders || '';
loadersForFile = loaderStringForFile.replace(/\*/g, '!') + '!';
if (loaderStringForFile) {
loadersForFile = loaderStringForFile.replace(/\*/g, '!') + '!';
}

varName = fileConfig.varName;
}
Expand Down

0 comments on commit 57e23a5

Please sign in to comment.