Skip to content

Commit f54b14b

Browse files
committed
minor #19331 [AssetMapper] tweak the AssetMapper docs (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] tweak the AssetMapper docs Commits ------- 786e4aa tweak the AssetMapper docs
2 parents fce25e2 + 786e4aa commit f54b14b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

frontend/asset_mapper.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ CSS can be added to your page by importing it from a JavaScript file. The defaul
406406
// ...
407407
408408
When you call ``importmap('app')`` in ``base.html.twig``, AssetMapper parses
409-
``assets/app.js`` (and any JavaScript files that *it* imports) looking for ``import``
409+
``assets/app.js`` (and any JavaScript files that it imports) looking for ``import``
410410
statements for CSS files. The final collection of CSS files is rendered onto
411411
the page as ``link`` tags in the order they were imported.
412412

@@ -513,7 +513,7 @@ Missing importmap Entry
513513
~~~~~~~~~~~~~~~~~~~~~~~
514514

515515
One of the most common errors will come from your browser's console, and
516-
will something like this:
516+
will look something like this:
517517

518518
Failed to resolve module specifier " bootstrap". Relative references must start
519519
with either "/", "./", or "../".
@@ -764,25 +764,25 @@ If you *do* need to support very old browsers, you should use a tool like
764764
(https://caniuse.com/import-maps), you can use an ``importShim()`` function
765765
from the shim: https://www.npmjs.com/package/es-module-shims#user-content-polyfill-edge-case-dynamic-import
766766

767-
Can I Use with Sass or Tailwind?
768-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
767+
Can I Use it with Sass or Tailwind?
768+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
769769

770770
Sure! See :ref:`Using Tailwind CSS <asset-mapper-tailwind>` or :ref:`Using Sass <asset-mapper-sass>`.
771771

772-
Can I use with TypeScript?
773-
~~~~~~~~~~~~~~~~~~~~~~~~~~
772+
Can I Use it with TypeScript?
773+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
774774

775775
Sure! See :ref:`Using TypeScript <asset-mapper-ts>`.
776776

777-
Can I use with JSX or Vue?
778-
~~~~~~~~~~~~~~~~~~~~~~~~~~
777+
Can I Use it with JSX or Vue?
778+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
779779

780780
Probably not. And if you're writing an application in React, Svelte or another
781781
frontend framework, you'll probably be better off using *their* tools directly.
782782

783783
JSX *can* be compiled directly to a native JavaScript file but if you're using a lot of JSX,
784784
you'll probably want to use a tool like :ref:`Encore <frontend-webpack-encore>`.
785-
See the `UX React Documentation`_ for more details about using with the AssetMapper
785+
See the `UX React Documentation`_ for more details about using it with the AssetMapper
786786
component.
787787

788788
Vue files *can* be written in native JavaScript, and those *will* work with
@@ -796,7 +796,7 @@ component.
796796
Using TypeScript
797797
----------------
798798

799-
To use TypeScript with AssetMapper component, check out `sensiolabs/typescript-bundle`_.
799+
To use TypeScript with the AssetMapper component, check out `sensiolabs/typescript-bundle`_.
800800

801801
Third-Party Bundles & Custom Asset Paths
802802
----------------------------------------
@@ -875,7 +875,7 @@ Then try the command again.
875875
Configuration Options
876876
---------------------
877877

878-
You can see every available configuration option and some info by running:
878+
You can see every available configuration options and some info by running:
879879

880880
.. code-block:: terminal
881881
@@ -897,7 +897,7 @@ can be a simple list:
897897
- assets/
898898
- vendor/some/package/assets
899899
900-
Of you can give each path a "namespace" that will be used in the asset map:
900+
Or you can give each path a "namespace" that will be used in the asset map:
901901

902902
.. code-block:: yaml
903903
@@ -1101,7 +1101,7 @@ command that checks security vulnerabilities in the dependencies of your applica
11011101
6 vulnerabilities found: 1 Critical / 1 High / 4 Medium
11021102
11031103
The command will return the ``0`` exit code if no vulnerability is found, or
1104-
the ``-1`` exit code otherwise. This means that you can seamlessly integrate this
1104+
the ``1`` exit code otherwise. This means that you can seamlessly integrate this
11051105
command as part of your CI to be warned anytime a new vulnerability is found.
11061106

11071107
.. tip::

0 commit comments

Comments
 (0)