Skip to content

Commit 9ecec6e

Browse files
committed
[Best Practices] Recommend AssetMapper instead of Webpack Encore
1 parent c7e94de commit 9ecec6e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

best_practices.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -376,17 +376,15 @@ inside the ``#[Security]`` attribute.
376376
Web Assets
377377
----------
378378

379-
Use Webpack Encore to Process Web Assets
380-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
379+
.. _use-webpack-encore-to-process-web-assets:
381380

382-
Web assets are things like CSS, JavaScript, and image files that make the
383-
frontend of your site look and work great. `Webpack`_ is the leading JavaScript
384-
module bundler that compiles, transforms and packages assets for usage in a browser.
381+
Use AssetMapper to Manage Web Assets
382+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
385383

386-
:doc:`Webpack Encore </frontend>` is a JavaScript library that gets rid of most
387-
of Webpack complexity without hiding any of its features or distorting its usage
388-
and philosophy. It was created for Symfony applications, but it works
389-
for any application using any technology.
384+
Web assets are the CSS, JavaScript, and image files that make the frontend of
385+
your site look and work great. :doc:`AssetMapper </frontend/asset_mapper>` lets
386+
you write modern JavaScript and CSS without the complexity of using a bundler
387+
such as `Webpack`_ (directly or via :doc:`Webpack Encore </frontend/encore/index>`).
390388

391389
Tests
392390
-----

0 commit comments

Comments
 (0)