Automatically loads/unloads styles using webpack’s style-loader and aurelia’s attached/detached lifecycle methods.
Nice. Thanks for sharing
Whats the difference between using this and loading a style inside the html template, using
The styles are never unloaded with require element, even if the component is not currently in view
I just released version 2.0.0 of this, which allows you to use just regular
<require from="./style.css"/> tags without the need for decorators. This replaces the CSS resource view engine hooks that
aurelia-templating-resources uses. It is a breaking change, check out the readme for details.