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 | |
parent | d26af3da4f2419e868e70b65c61c6f69649f1798 (diff) |
Created fake css and loading the files in the service provider
-rw-r--r-- | workbench/app/Providers/WorkbenchServiceProvider.php | 9 | ||||
-rw-r--r-- | workbench/public/dist/main.testing.css | 9 |
2 files changed, 17 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'); } } 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; +} |