Skip to content

Commit c0cfd35

Browse files
committed
[Encore] Proactively warn the user that enableSassLoader() needs additional packages
1 parent c831050 commit c0cfd35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/encore/simple-example.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Inside, use Encore to help generate your Webpack configuration.
6565
This is already a rich setup: it outputs 2 files, uses the Sass pre-processor and
6666
enables source maps to help debugging.
6767

68+
Actually, to use ``enableSassLoader()``, you'll need to install a few
69+
more packages. But Encore will tell you *exactly* what you need after running it.
70+
6871
.. _encore-build-assets:
6972

7073
To build the assets, use the ``encore`` executable:
@@ -89,9 +92,6 @@ To build the assets, use the ``encore`` executable:
8992

9093
Re-run ``encore`` each time you update your ``webpack.config.js`` file.
9194

92-
Actually, to use ``enableSassLoader()``, you'll need to install a few
93-
more packages. But Encore will tell you *exactly* what you need.
94-
9595
After running one of these commands, you can now add ``script`` and ``link`` tags
9696
to the new, compiled assets (e.g. ``/build/app.css`` and ``/build/app.js``).
9797
In Symfony, use the ``asset()`` helper:

0 commit comments

Comments
 (0)