@@ -142,21 +142,22 @@ Twig ``stimulus_*`` functions.
142142
143143Each controller has a number of options in ``package.json `` file:
144144
145- ================== ====================================================================================================
146- Option Description
147- ================== ====================================================================================================
148- enabled Whether the controller should be enabled by default.
149- main Path to the controller file.
150- fetch How controller & dependencies are included when the page loads.
151- Use ``eager `` (default) to make controller & dependencies included in the JavaScript that's
152- downloaded when the page is loaded.
153- Use ``lazy `` to make controller & dependencies isolated into a separate file and only downloaded
154- asynchronously if (and when) the data-controller HTML appears on the page.
155- autoimport List of files to be imported with the controller. Useful e.g. when there are several CSS styles
156- depending on the frontend framework used (like Bootstrap 4 or 5, Tailwind CSS...).
157- The value must be an object with files as keys, and a boolean as value for each file to set
158- whether the file should be imported.
159- ================== ====================================================================================================
145+ ``enabled ``:
146+ Whether the controller should be enabled by default.
147+ ``main ``:
148+ Path to the controller file.
149+ ``fetch ``:
150+ How controller & dependencies are included when the page loads.
151+ Use ``eager `` (default) to make controller & dependencies included in the
152+ JavaScript that's downloaded when the page is loaded.
153+ Use ``lazy `` to make controller & dependencies isolated into a separate file
154+ and only downloaded asynchronously if (and when) the data-controller HTML
155+ appears on the page.
156+ ``autoimport ``:
157+ List of files to be imported with the controller. Useful e.g. when there are
158+ several CSS styles depending on the frontend framework used (like Bootstrap 4
159+ or 5, Tailwind CSS...). The value must be an object with files as keys, and
160+ a boolean as value for each file to set whether the file should be imported.
160161
161162Specifics for Asset Mapper
162163--------------------------
0 commit comments