Skip to content

Commit 3266473

Browse files
committed
Reword
1 parent b33168a commit 3266473

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

components/asset.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ string as the second argument of the ``StaticVersionStrategy`` constructor::
142142
JSON File Manifest
143143
..................
144144

145-
Use the :class:`Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy`
146-
to take advantage of the strategy used by popular tools such as `Webpack
147-
<https://webpack.js.org/>`_, which generates a JSON file mapping all source file names to their corresponding output file. For example::
145+
A popular strategy to manage asset versioning, which is used by tools such as
146+
`Webpack`_, is to generate a JSON file mapping all source file names to their
147+
corresponding output file:
148+
149+
.. code-block:: json
148150
149151
// rev-manifest.json
150152
{
@@ -153,6 +155,8 @@ to take advantage of the strategy used by popular tools such as `Webpack
153155
"...": "..."
154156
}
155157
158+
In those cases, use the
159+
:class:`Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy`::
156160

157161
use Symfony\Component\Asset\Package;
158162
use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy;
@@ -372,3 +376,4 @@ Learn more
372376
----------
373377

374378
.. _Packagist: https://packagist.org/packages/symfony/asset
379+
.. _`Webpack`: https://webpack.js.org/

0 commit comments

Comments
 (0)