File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,11 @@ string as the second argument of the ``StaticVersionStrategy`` constructor::
142
142
JSON File Manifest
143
143
..................
144
144
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
148
150
149
151
// rev-manifest.json
150
152
{
@@ -153,6 +155,8 @@ to take advantage of the strategy used by popular tools such as `Webpack
153
155
"..." : " ..."
154
156
}
155
157
158
+ In those cases, use the
159
+ :class: `Symfony\\ Component\\ Asset\\ VersionStrategy\\ JsonManifestVersionStrategy `::
156
160
157
161
use Symfony\Component\Asset\Package;
158
162
use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy;
@@ -372,3 +376,4 @@ Learn more
372
376
----------
373
377
374
378
.. _Packagist : https://packagist.org/packages/symfony/asset
379
+ .. _`Webpack` : https://webpack.js.org/
You can’t perform that action at this time.
0 commit comments