Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #110 from ggarek/issue-109
Browse files Browse the repository at this point in the history
use webpack`s public path at runtime to resolve sprite url
  • Loading branch information
mrsum authored Nov 11, 2016
2 parents b6df271 + 37880b3 commit 9a49bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svgstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ WebpackSvgStore.prototype.apply = function(compiler) {

data.fileName = utils.hash(data.fileName, this.state.current.buildTimestamp);

replacement = expr.id.name + ' = { filename: "' + data.fileName + '" }';
replacement = expr.id.name + ' = { filename: ' + "__webpack_require__.p +" + '"' + data.fileName + '" }';
dep = new ConstDependency(replacement, expr.range);
dep.loc = expr.loc;
this.state.current.addDependency(dep);
Expand Down

0 comments on commit 9a49bd2

Please sign in to comment.