stratagem-stack hello there i just build a new extension and i want to enable/disable less file for forum css via check box if its enables it will load my customized less file if not it will keep the default design
clarkwinkelmann stratagem-stack you could create your own extender based on the CSS part of https://github.com/flarum/core/blob/master/src/Extend/Frontend.php In your Extender extend method you could do something like this: $container->resolving($abstract, function (Assets $assets) { if (/* check if your setting is enabled */) { $assets->css(function (SourceCollector $sources) { $sources->addFile($path); }); } });