aurelia / hot-module-reload

Core functionality for Aurelia's hot-module-reolad (HMR) capabilities, which is shared by all loaders and tools.
MIT License
25 stars 8 forks source link

A previously <require>d CSS does not Hot-unload when removed from a View #3

Open niieani opened 7 years ago

niieani commented 7 years ago

With the current implementation, there is no signal to the CSS resource when a View is being detached and hence the CSS is never being unloaded (currently that's by design). Therefore removing a <require from="file.css"> from a HTML template has no effect, but making said css file empty, does.

vegarringdal commented 7 years ago

How is this going, figured out a clever solution ? Great work on this module btw 👍

niieani commented 7 years ago

Thanks! To answer your question: not yet. We're thinking about adding some features to Aurelia to make HMR overall better and easier, but it's not the top priority right now.

vegarringdal commented 7 years ago

Ok, Keep up the good work 👍