From 45866e23f62e7eaa52cb095ad4be0f4619ed235e Mon Sep 17 00:00:00 2001 From: Sam Light Date: Mon, 31 Mar 2025 23:52:46 +0100 Subject: Created fake css and loading the files in the service provider --- workbench/app/Providers/WorkbenchServiceProvider.php | 9 ++++++++- workbench/public/dist/main.testing.css | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 workbench/public/dist/main.testing.css 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'); } } diff --git a/workbench/public/dist/main.testing.css b/workbench/public/dist/main.testing.css new file mode 100644 index 0000000..d184bdb --- /dev/null +++ b/workbench/public/dist/main.testing.css @@ -0,0 +1,9 @@ +* { + margin: 0; + padding: 0; +} + +body { + background-color: #333; + color: red; +} -- cgit v1.2.3