Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf0a87b

Browse files
committed
minor#20789 [AssetMapper] Adding info that always *all* entrypoints are included… (ThomasLandauer)
This PR was squashed before being merged into the 6.4 branch.Discussion----------[AssetMapper] Adding info that always *all* entrypoints are included…… in the importmapPage:https://symfony.com/doc/6.4/frontend/asset_mapper.html#page-specific-css-javascriptInfo is taken fromsymfony/symfony#54377 (comment)Commits-------cb8e2ff [AssetMapper] Adding info that always *all* entrypoints are included…
2 parents3d83f8d +cb8e2ff commitaf0a87b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎frontend/asset_mapper.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,10 @@ loads the ``app.js`` file *and* the ``checkout.js`` file. It's important
11011101
to *not* call ``parent()`` in the ``importmap`` block. Each page can only
11021102
have *one* importmap, so ``importmap()`` must be called exactly once.
11031103

1104-
If, for some reason, you want to execute *only* ``checkout.js``
1104+
If you want to execute *only* ``checkout.js``
11051105
and *not* ``app.js``, pass only ``checkout`` to ``importmap()``.
1106+
In this case, still **both** files are added to ``<script type="importmap">``,
1107+
but only ``checkout`` is executed (via ``<script type="module">import 'checkout';</script>``).
11061108

11071109
Using a Content Security Policy (CSP)
11081110
-------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp