CSS Combiner for backend styles doesnt work

Hello everybody,

I try to version my CSS files so people do not need to force refresh if the css files changed.

For the frontend, this works very well using addCss() and sending the css files in an array so the combiner is triggered.

However, in the backend, I get an error using the same code:

Backend\Classes\Controller::getLocalPath(): Argument #1 ($relativePath) must be of type string, null given, called in C:\git\php\laravel\mch-v2.0\modules\system\traits\AssetMaker.php on line 198

~/modules/system/traits/AssetMaker.php line 464

Since the addCss() is supposed to work in the backend, I wonder if this is an OctoberCMS bug.

Thx for any help :slight_smile:

I don’t know if combiner works in backend, but asset versioning is possible with addCss method’s second parameter (attributes).


Definitly a workaround indeed. Thanks :slight_smile:

I just dont think that the addCss() method should throw an error in the backend. :see_no_evil:

Curious what daft will say here