Extender: List all assets explicitly

This commit is contained in:
Franz Liedke 2018-01-21 21:10:41 +01:00
parent 5cb1fc4627
commit 99c172b2b4

View File

@ -16,7 +16,8 @@ use Illuminate\Contracts\View\Factory;
return [
(new Extend\Assets('forum'))
->defaultAssets(__DIR__)
->asset(__DIR__.'/js/forum/dist/extension.js')
->asset(__DIR__.'/less/forum/extension.less')
->bootstrapper('flarum/subscriptions/main'),
function (Dispatcher $events, Factory $views) {
$events->subscribe(Listener\AddDiscussionSubscriptionAttribute::class);