jaysonsantos/jinja-assets-compressor

Automatically select type based on relation attribute

insanoid opened this issue · 0 comments

When you don't specify a type on a css file included as a link it throws an error Tags to be compressed must have a type attribute. Considering we have the rel attribute we can guess that it is css like we guess with JS.

{% compress 'css' %}
     <link href="{{ url_for('static', filename='layout.css') }}" rel="stylesheet">
{% endcompress %}