From 641a5d4bbd477671a21c15d5154dff34528b6864 Mon Sep 17 00:00:00 2001 From: Eric Celeste Date: Mon, 18 May 2026 09:38:42 -0500 Subject: [PATCH] vite tooling hint for addons --- content/collections/pages/building-an-addon.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/content/collections/pages/building-an-addon.md b/content/collections/pages/building-an-addon.md index 79b61e24f..48e166be1 100644 --- a/content/collections/pages/building-an-addon.md +++ b/content/collections/pages/building-an-addon.md @@ -203,6 +203,19 @@ public function bootAddon() } ``` +## Including Fieldtypes with your Addon + +If you plan to build a [fieldtype](/fieldtypes/build-a-fieldtype) into your addon, you can do so by including your addon when you generate the fieldtype: + +```shell +php please make:fieldtype Uppercase example/my-addon +``` + +In this case, please also pay special attention to the [Vite tooling development](/addons/vite-tooling#development) requirements. In particular, you will probably want to publish a special "dev build" so that the manifest for the fieldtype can be found within the addon: + +```shell +php artisan vendor:publish --tag=my-addon +``` ## Registering Components