Aurelia plugin for webpack style-loader/useable

#1

Automatically loads/unloads styles using webpack’s style-loader and aurelia’s attached/detached lifecycle methods.

1 Like

#2

Nice. Thanks for sharing :smile:

0 Likes

#3

Whats the difference between using this and loading a style inside the html template, using <require from>?

1 Like

#4

The styles are never unloaded with require element, even if the component is not currently in view

3 Likes

#5

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.

1 Like