mafleig
1
Hi there,
i’ve set up merx with kirby and now the “css(‘@auto’)” doesn’t work anymore.
CSS files are inside /assets/css/templates and the link tag looks like this inside my header:
<?= css([
'assets/css/index.css',
'@auto'
]) ?>
btw: “js(‘@auto’)” seems to work fine.
At first sight, I can’t see anything in the merx plugin that should make @auto stop working, there is nothing CSS related at all in that plugin?
Have you installed merx as a plugin into your own project? And did the auto styles work before you installed merx?
Found it 
I had to add the assets to the index.php inside the public folder:
<?php
include '../kirby/bootstrap.php';
$kirby = new Kirby([
'roots' => [
'index' => __DIR__,
'content' => __DIR__ . '/../content',
'site' => __DIR__ . '/../site',
'assets' => __DIR__ . '/../assets',
],
]);
echo $kirby->render();