diff options
author | Sam Light <sam@lightscale.co.uk> | 2025-03-31 23:52:46 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-03-31 23:52:46 +0100 |
commit | 45866e23f62e7eaa52cb095ad4be0f4619ed235e (patch) | |
tree | 931017042dfa4973fb5cc52400473ff3c51cd901 /workbench/app/Providers/WorkbenchServiceProvider.php | |
parent | d26af3da4f2419e868e70b65c61c6f69649f1798 (diff) |
Created fake css and loading the files in the service provider
Diffstat (limited to 'workbench/app/Providers/WorkbenchServiceProvider.php')
-rw-r--r-- | workbench/app/Providers/WorkbenchServiceProvider.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/workbench/app/Providers/WorkbenchServiceProvider.php b/workbench/app/Providers/WorkbenchServiceProvider.php index e8cec9c..ceaeef0 100644 --- a/workbench/app/Providers/WorkbenchServiceProvider.php +++ b/workbench/app/Providers/WorkbenchServiceProvider.php @@ -2,6 +2,8 @@ namespace Workbench\App\Providers; +use Lightscale\LaralightAssets\Facades\Assets; + use Illuminate\Support\ServiceProvider; class WorkbenchServiceProvider extends ServiceProvider @@ -19,6 +21,11 @@ class WorkbenchServiceProvider extends ServiceProvider */ public function boot(): void { - // + Assets::registerManifest( + 'main', public_path('dist/manifest.json'), '/dist' + ); + + Assets::queueScript('main::main.js'); + Assets::queueStyle('main::main.css'); } } |