summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--workbench/app/Providers/WorkbenchServiceProvider.php9
-rw-r--r--workbench/public/dist/main.testing.css9
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;
+}