Quick question: Does including CSS files via Extend.php, as described here, no longer work with Flarum version 2.x.x?
https://docs.flarum.org/extend/frontend/#css
I had included my custom CSS that way in version 1.x.x, and it worked.
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Extend;
return [
(new Extend\Frontend('forum'))
->css(__DIR__.'/assets/extensions/smart-button-community/smart-button-community.css'),
];
Now I’m trying to do the same thing with Flarum 2.0.0-rc.8, but unfortunately, the page no longer works.
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Extend;
return [
(new Extend\Frontend('forum'))
->css(__DIR__.'/css/smart-button-community.css')
];
See also this discussion
#39794