Open friedrichweise opened 2 years ago
Currently we are always loading the css file from /dist/css/site.min.css:
/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:
npm run watch
site.css
Currently we are always loading the css file from
/dist/css/site.min.css
:Thereby we are bypassing the Grav Asset Manager, which is loading the stylesheet the following way:
This has the following disadvantages:
npm run watch
command doesn't work for local development, because it only creates asite.css
-file