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 }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
SpaServices Webpack Dev Middleware - automatic insertion of "webpack-hot-middleware/client" #432
When you prepend that "webpack-hot-middleware/client" HMR string for each entry point my "style" entry does not inject css into html anymore. It works if you append it, but HMR is still not working for style entry, that means if i change something in scss, file is compiled, but nothing is replaced when finishes.
Maybe this is not problem of this middleware, maybe it is just my configuration which is not correct.
That's strange. I tried to reproduce your issue, but everything worked perfectly well (the styles appeared, and HMR continued to work). So I'm not sure how to know what's going wrong in your case based on your config alone.
Here's the code I used when attempting to repro the issue: e971dde
Could you let me know whether that works for you? And if you're trying to do something different, what in particular is different in your scenario? Could you describe the full minimal set of changes needed to reproduce the issue based on the Angular2Spa code like in the branch I've linked to?
Activity
Attempt to repro #432. However it works fine like this.
SteveSandersonMS commentedon Nov 18, 2016
That's strange. I tried to reproduce your issue, but everything worked perfectly well (the styles appeared, and HMR continued to work). So I'm not sure how to know what's going wrong in your case based on your config alone.
Here's the code I used when attempting to repro the issue: e971dde
Could you let me know whether that works for you? And if you're trying to do something different, what in particular is different in your scenario? Could you describe the full minimal set of changes needed to reproduce the issue based on the Angular2Spa code like in the branch I've linked to?
SteveSandersonMS commentedon Nov 21, 2016
I'll close this since AFAIK it works and we don't have any repro steps that recreate the originally described issue.
If anyone knows how to repro this, please file a new issue!
kukjevov commentedon Nov 22, 2016
Hi thank you very much for your sample commit. Thanks to it i found solution :).
Problem was that i included style.js in html head but it must be included in body after vendor.js. Now it is working. Thank you very much again.