Allow apps to register icons
The SCSS compile is great and the same holds true for the way we use it for accessibility, themeing and apps etc.
However. With the recent app bundling in webpack etc. It has become clear that the mixins pose somewhat of an issue here. As that means that an app that uses them can't have statically compiled SCSS but instead relies on the server to do this. Which causes additional requests, server load etc.
A possible solution would be to have a way for apps to register their icons. These are then injected into the icons.scss we already have (on the fly once it is compiled of course).
We could do some smart things.
- Invalidate the icons.scss when an app gets enabled/updated/disabled
- Automatically regenerate it then
For future work we could look at the other mixins but for now I think icons is theone used mosts.
CC: @juliushaertl @skjnldsv @ChristophWurst