Skip to content

[AssetMapper] Deleting duplicated info #19617

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
Feb 29, 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
12 changes: 4 additions & 8 deletions frontend/asset_mapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -608,19 +608,15 @@ is being built, which you can ignore.
Deploying with the AssetMapper Component
----------------------------------------

When you're ready to deploy, "compile" your assets during deployment:
When you're ready to deploy, "compile" your assets:

.. code-block:: terminal

$ php bin/console asset-map:compile

That's it! This will write all your assets into the ``public/assets/`` directory,
along with a few JSON files so that the ``importmap`` can be rendered lightning fast.

But to make sure your site is performant, be sure that your web server
(or a proxy) is running HTTP/2, is compressing your assets and setting
long-lived Expires headers on them. See :ref:`Optimization <optimization>` for
more details.
This will write all your versioned asset files into the ``public/assets/`` directory,
along with a few JSON files: ``manifest.json``, ``importmap.json``, plus one ``entrypoint.<name>.json``
for each entrypoint.

.. _optimization:

Expand Down