Skip to content

Commit

Permalink
fix(url): use loaderUtils.stringifyRequest to avoid invalidating ha…
Browse files Browse the repository at this point in the history
…shes due to absolute paths (#242)
  • Loading branch information
michael-ciniawsky authored May 29, 2017
1 parent a6287c5 commit 97508ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports.pitch = function (request) {

return [
"// style-loader: Adds some reference to a css file to the DOM by adding a <link> tag",
"var update = require(" + JSON.stringify("!" + path.join(__dirname, "lib", "addStyleUrl.js")) + ")(",
"var update = require(" + loaderUtils.stringifyRequest(this, "!" + path.join(__dirname, "lib", "addStyleUrl.js")) + ")(",
"\trequire(" + loaderUtils.stringifyRequest(this, "!!" + request) + ")",
", " + JSON.stringify(options) + ");",
"// Hot Module Replacement",
Expand Down

0 comments on commit 97508ec

Please sign in to comment.