Skip to content

Commit

Permalink
fix: specify peerDependencies of file-loader (closes #390)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhovhannes committed May 24, 2020
1 parent cda55a2 commit a8513ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"file-loader": "~6.0.0",
"loader-utils": "~2.0.0"
},
"peerDependencies": {
"webpack": "^4.0.0 || ^5.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bhovhannes/svg-url-loader.git"
Expand Down
5 changes: 0 additions & 5 deletions src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,9 @@ module.exports = function(content) {
});

data = 'data:image/svg+xml,' + newContent.trim();

}

if (!(query.iesafe && hasStyleElement && data.length > 4096)) {
// if (query.encoding === "none" && !query.noquotes) {
// data = '"'+data+'"';
// }

return 'module.exports = ' + JSON.stringify(data);
}
}
Expand Down

0 comments on commit a8513ef

Please sign in to comment.