Automatically loads/unloads styles using webpack’s style-loader and aurelia’s attached/detached lifecycle methods.
1 Like
Nice. Thanks for sharing
Whats the difference between using this and loading a style inside the html template, using <require from>
?
2 Likes
The styles are never unloaded with require element, even if the component is not currently in view
4 Likes
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.
2 Likes