OK, I have attempted to make a basic extension that applies a .less file, but I am getting a 500 Internal Server Error. Here is the contents of my folder, and the contents of the files:
Structure:
less
~forum
~extension.less
bootstrap.php
composer.json
Contents of composer.json:
{
"name": "zaptech/flarum-color-changer",
"description": "Change the color of your flarum interface!",
"type": "flarum-extension",
"require": {
"flarum/core": "^0.1.0-beta.6"
},
"extra": {
"flarum-extension": {
"title": "Color Changer"
}
}
}
Contents of bootstrap.php
<?php
use Flarum\Extend;
use Illuminate\Contracts\Events\Dispatcher;
return [
(new Extend\Assets('forum'))
->asset(__DIR__.'/less/forum/extension.less')
];
Contents of extension.less
.global {
}
There is probably some really obvious and stupid mistake in here that I haven't seen. Any tips are appreciated!