Skip to content

Commit ce23225

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [AssetMapper] Clarifying `importmap_polyfill` [Frontend] Adding link to PostCSS
2 parents b3c5187 + 801363b commit ce23225

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

frontend.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ be executed by a browser.
4848

4949
.. _ux-note-2:
5050

51-
**[2]** There are some PostCSS plugins available to remove comments from CSS files.
51+
**[2]** There are some `PostCSS`_ plugins available to remove comments from CSS files.
5252

5353
.. _frontend-asset-mapper:
5454

@@ -109,9 +109,10 @@ Other Front-End Articles
109109
.. _`Webpack`: https://webpack.js.org/
110110
.. _`Node.js`: https://nodejs.org/
111111
.. _`Webpack Encore screencast series`: https://symfonycasts.com/screencast/webpack-encore
112-
.. _StimulusBundle Documentation: https://symfony.com/bundles/StimulusBundle/current/index.html
113-
.. _Stimulus/UX: https://symfony.com/bundles/StimulusBundle/current/index.html
114-
.. _Stimulus: https://stimulus.hotwired.dev/
115-
.. _Turbo: https://turbo.hotwired.dev/
116-
.. _Symfony UX: https://ux.symfony.com
117-
.. _API Platform: https://api-platform.com/
112+
.. _`StimulusBundle Documentation`: https://symfony.com/bundles/StimulusBundle/current/index.html
113+
.. _`Stimulus/UX`: https://symfony.com/bundles/StimulusBundle/current/index.html
114+
.. _`Stimulus`: https://stimulus.hotwired.dev/
115+
.. _`Turbo`: https://turbo.hotwired.dev/
116+
.. _`Symfony UX`: https://ux.symfony.com
117+
.. _`API Platform`: https://api-platform.com/
118+
.. _`PostCSS`: https://postcss.org/

frontend/asset_mapper.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -930,15 +930,19 @@ This option is enabled by default.
930930
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
931931

932932
Configure the polyfill for older browsers. By default, the `ES module shim`_ is loaded
933-
via a CDN. You can pass the key of an item in ``importmap.php`` or ``false`` to disable
934-
the polyfill loading.
933+
via a CDN (i.e. the default value for this setting is `es-module-shims`):
935934

936935
.. code-block:: yaml
937936
938937
framework:
939938
asset_mapper:
940-
importmap_polyfill: false # disable the shim ...
941-
# importmap_polyfill: 'my_import_map' # ... or pass an importmap name
939+
# set this option to false to disable the shim entirely
940+
# (your website/web app won't work in old browsers)
941+
importmap_polyfill: false
942+
943+
# you can also use a custom polyfill by adding it to your importmap.php file
944+
# and setting this option to the key of that file in the importmap.php file
945+
# importmap_polyfill: 'custom_polyfill'
942946
943947
.. tip::
944948

0 commit comments

Comments
 (0)