metaknoten / knotentheme

Grav theme for metaknoten.net
https://www.metaknoten.net
MIT License
0 stars 0 forks source link

Improve CSS build process #4

Open friedrichweise opened 2 years ago

friedrichweise commented 2 years ago

Currently we are always loading the css file from /dist/css/site.min.css:

<link rel="stylesheet" href="/user/themes/knotentheme/dist/css/site.min.css">

Thereby we are bypassing the Grav Asset Manager, which is loading the stylesheet the following way:

    {% block stylesheets %}
        {% do assets.addCss('theme://dist/css/site' ~ extension ~ '.css', 98) %}
    {% endblock %}

This has the following disadvantages: