You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webpack Hot Module Replacement not disposing of Old <style></style> and <script></script> tags #596
HMR does work to add new code to the page live, but it just piles new tags with all their css and JS to the head.
So I end up with the old styles and scripts, PLUS the new styles and scripts, and each time I save I get more and more appended to the head.
Isn't HMR supposed to "dispose" of the old styles and scripts before appending the new ones? What am I missing to make HMR properly dispose of old and tags?
Activity
PatrickJS commentedon May 17, 2016
sorry I can fix that
IAMtheIAM commentedon May 17, 2016
Ok great, thanks! I'll wait for an update from you.
Ledzz commentedon Aug 26, 2016
+1 to this issue
PatrickJS commentedon Aug 26, 2016
this is fixed in the latest release with
removeNgStylesfrom@angularclass/hmrPatrickJS commentedon Aug 26, 2016
the script tags are there because they're patches