mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Extender: List all assets explicitly
This commit is contained in:
parent
ad07d7570f
commit
b1ed9d4d1d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user