This is not an issue with your library, but you might want to put it in the hint for htmlMinifier. Using @event-style syntax in elements of your render() templates can cause issues if you use sortAttributes - kangax/html-minifier#1057. Basically the attributes get sorted, but the replacement strings don't.