diff --git a/frontend.rst b/frontend.rst index c28e6fcf222..ac7ececabcc 100644 --- a/frontend.rst +++ b/frontend.rst @@ -35,7 +35,7 @@ Supports Sass/Tailwind :ref:`yes ` yes Supports React, Vue, Svelte? yes :ref:`[1] ` yes Supports TypeScript :ref:`yes ` yes Removes comments from JavaScript no :ref:`[2] ` yes -Removes comments from CSS no :ref:`[2] ` no +Removes comments from CSS no :ref:`[2] ` yes :ref:`[4] ` Versioned assets always optional Can update 3rd party packages yes no :ref:`[3] ` ================================ ================================== ========== @@ -56,6 +56,10 @@ be executed by a browser. **[3]** If you use ``npm``, there are update checkers available (e.g. ``npm-check``). +.. _ux-note-4: + +**[4]** Comments from CSS code can be removed with `CssMinimizerPlugin`_, configurable with ``Encore.configureCssMinimizerPlugin()``. + .. _frontend-asset-mapper: AssetMapper (Recommended) @@ -153,3 +157,4 @@ Other Front-End Articles .. _`SensioLabs Minify Bundle`: https://github.com/sensiolabs/minify-bundle .. _`AssetMapper screencast series`: https://symfonycasts.com/screencast/asset-mapper .. _`API Platform screencast series`: https://symfonycasts.com/screencast/api-platform +.. _`CssMinimizerPlugin`: https://webpack.js.org/plugins/css-minimizer-webpack-plugin