@@ -200,8 +200,8 @@ this can be done by importing its full URL, like from a CDN:
200
200
201
201
import { Alert } from ' https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/+esm' ;
202
202
203
- But yikes! Needing to include that URL is a pain! Instead, we can add this package
204
- to our "importmap" via the ``importmap:require `` command. This command can be used
203
+ But yikes! Needing to include that URL is a pain! Instead, we can add this package
204
+ to our "importmap" via the ``importmap:require `` command. This command can be used
205
205
to add any `npm package `_:
206
206
207
207
.. code-block :: terminal
@@ -225,8 +225,8 @@ This adds the ``bootstrap`` package to your ``importmap.php`` file::
225
225
such as ``@popperjs/core ``. The ``importmap:require `` command will add both the
226
226
main package *and * its dependencies.
227
227
228
- After adding/updating the package in your ``importmap.php `` file, all new packages
229
- will be downloaded into an ``assets/vendor/ `` directory.
228
+ After adding/updating the package in your ``importmap.php `` file, all new packages
229
+ will be downloaded into an ``assets/vendor/ `` directory.
230
230
231
231
Now you can import the ``bootstrap `` package like usual:
232
232
@@ -235,8 +235,8 @@ Now you can import the ``bootstrap`` package like usual:
235
235
import { Alert } from ' bootstrap' ;
236
236
// ...
237
237
238
- It's recommended to ignore the ``assets/vendor/ `` directory and not commit it to
239
- your repository. Therefore, you'll need to run the ``php bin/console importmap:install ``
238
+ It's recommended to ignore the ``assets/vendor/ `` directory and not commit it to
239
+ your repository. Therefore, you'll need to run the ``php bin/console importmap:install ``
240
240
command to download the files on other computers if some files are missing:
241
241
242
242
.. code-block :: terminal
0 commit comments