Skip to content

Commit

Permalink
feat: Switch appendChild to replaceBefore in hmr script (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
hafffe authored and ScriptedAlchemy committed May 17, 2019
1 parent 1884e55 commit 98b3f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hmr/hotModuleReplacement.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function updateCss(el, url) {

newEl.href = `${url}?${Date.now()}`;

el.parentNode.appendChild(newEl);
el.parentNode.insertBefore(newEl, el);
}

function getReloadUrl(href, src) {
Expand Down

0 comments on commit 98b3f2c

Please sign in to comment.