File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ files into your final output directory.
4444 + // optional target path, relative to the output dir
4545 + //to: 'images/[path][name].[ext]',
4646 +
47+ + // if versioning is enabled, add the file hash too
48+ + //to: 'images/[path][name].[hash:8].[ext]',
49+ +
4750 + // only copy files matching this pattern
4851 + //pattern: /\.(png|jpg|jpeg)$/
4952 + })
@@ -52,11 +55,6 @@ This will copy all files from ``assets/images`` into ``web/build`` (the output
5255path). If you have :doc: `versioning enabled <versioning >`, the copied files will
5356include a hash based on their content.
5457
55- .. note ::
56-
57- If order to use versioning with with custom target path (``to ``), you need to
58- update to path to include the file hash: ``images/[path][name].[hash:8].[ext] ``.
59-
6058To render inside Twig, use the ``asset() `` function:
6159
6260.. code-block :: html+twig
You can’t perform that action at this time.
0 commit comments