Skip to content

Commit 6844538

Browse files
committed
added a note about using Composer to install Encore
1 parent 6d25dbb commit 6844538

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/encore/installation.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ Then, install Encore into your project with Yarn:
1414
If you want to use `npm`_ instead of `yarn`_, replace ``yarn add xxx --dev`` by
1515
``npm install xxx --save-dev``.
1616

17+
.. tip::
18+
19+
If you are using Flex for your project, you can install Encore via:
20+
21+
.. code-block:: terminal
22+
23+
$ composer require encore
24+
1725
This command creates (or modifies) a ``package.json`` file and downloads dependencies
1826
into a ``node_modules/`` directory. When using Yarn, a file called ``yarn.lock``
1927
is also created/updated. When using npm 5, a ``package-lock.json`` file is created/updated.

0 commit comments

Comments
 (0)