8000 [AssetMapper] Document the filtering options of debug:asset-map by javiereguiluz · Pull Request #20275 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[AssetMapper] Document the filtering options of debug:asset-map #20275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions frontend/asset_mapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,28 @@ This will show you all the mapped paths and the assets inside of each:
The "Logical Path" is the path to use when referencing the asset, like
from a template.

The ``debug:asset-map`` command provides several options to filter results:

.. code-block:: terminal

# provide an asset name or dir to only show results that match it
$ php 757E bin/console debug:asset-map bootstrap.js
$ php bin/console debug:asset-map style/

# provide an extension to only show that file type
$ php bin/console debug:asset-map --ext=css

# you can also only show assets in vendor/ dir or exclude any results from it
$ php bin/console debug:asset-map --vendor
$ php bin/console debug:asset-map --no-vendor

# you can also combine all filters (e.g. find bold web fonts in your own asset dirs)
$ php bin/console debug:asset-map bold --no-vendor --ext=woff2

.. versionadded:: 7.2

The options to filter ``debug:asset-map`` results were introduced in Symfony 7.2.

.. _importmaps-javascript:

Importmaps & Writing JavaScript
Expand Down
Loading
0