From b1ed9d4d1d5f2cea645898eb6c8737610c85ed67 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sun, 21 Jan 2018 21:11:06 +0100 Subject: [PATCH] Extender: List all assets explicitly --- extensions/tags/bootstrap.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/tags/bootstrap.php b/extensions/tags/bootstrap.php index 44187d3bb..f5111f809 100644 --- a/extensions/tags/bootstrap.php +++ b/extensions/tags/bootstrap.php @@ -16,10 +16,12 @@ use Illuminate\Contracts\Events\Dispatcher; return [ (new Extend\Assets('forum')) - ->defaultAssets(__DIR__) + ->asset(__DIR__.'/js/forum/dist/extension.js') + ->asset(__DIR__.'/less/forum/extension.less') ->bootstrapper('flarum/tags/main'), (new Extend\Assets('admin')) - ->defaultAssets(__DIR__) + ->asset(__DIR__.'/js/admin/dist/extension.js') + ->asset(__DIR__.'/less/admin/extension.less') ->bootstrapper('flarum/tags/main'), function (Dispatcher $events) { $events->subscribe(Listener\AddClientAssets::class);