Skip to content

Commit

Permalink
Change host to hostname to allow webpack-dev-server on another port (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
glebtv authored and sheerun committed Mar 13, 2018
1 parent 7c372ab commit b2768ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function (source) {
if (window.__webpack_reload_css__) {
module.hot.__webpack_reload_css__ = false;
console.log("[HMR] Reloading stylesheets...");
var prefix = document.location.protocol + '//' + document.location.host;
var prefix = document.location.protocol + '//' + document.location.hostname;
document
.querySelectorAll("link[href][rel=stylesheet]")
.forEach(function(link) {
Expand Down

0 comments on commit b2768ad

Please sign in to comment.