Skip to content

Commit a4619de

Browse files
committed
Tweaks
1 parent 7258140 commit a4619de

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

frontend/asset_mapper.rst

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -279,34 +279,32 @@ You can update your third-party packages to their current versions by running:
279279
The ``importmap:install`` and ``importmap:outdated`` commands were introduced
280280
in Symfony 6.4.
281281

282-
Removing Packages from importmap
283-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
284-
285-
If you need to remove a JavaScript package that was previously added to your ``importmap.php`` file, you can use the ``importmap:remove`` command.
286-
287-
.. code-block:: terminal
288-
289-
$ php bin/console importmap:remove <package>
282+
Removing JavaScript Packages
283+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290284

291-
For example, to remove the ``lodash`` package from your importmap:
285+
If you need to remove a JavaScript package that was previously added to your
286+
``importmap.php`` file, use the ``importmap:remove`` command. For example, to
287+
remove the ``lodash`` package:
292288

293289
.. code-block:: terminal
294290
295291
$ php bin/console importmap:remove lodash
296292
297-
This will update your ``importmap.php`` file and remove the specified package (and any dependencies added along with it).
298-
After running this command, it is recommended to also run:
293+
This updates your ``importmap.php`` file and removes the specified package
294+
(along with any dependencies that were added with it).
295+
296+
After running this command, it's recommended to also run the following to ensure
297+
that your ``assets/vendor/`` directory is in sync with the updated import map:
299298

300299
.. code-block:: terminal
301300
302301
$ php bin/console importmap:install
303302
304-
This ensures your ``assets/vendor/`` directory is in sync with the updated importmap configuration.
305-
306303
.. tip::
307304

308-
Removing a package from the importmap does not automatically remove any references to it in your JavaScript files.
309-
Make sure to update your code to remove any ``import`` statements that reference the removed package.
305+
Removing a package from the import map does not automatically remove any
306+
references to it in your JavaScript files. Make sure to update your code and
307+
remove any ``import`` statements that reference the removed package.
310308

311309
How does the importmap Work?
312310
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)