@@ -8,21 +8,22 @@ Symfony application or not.
88Installing Encore in Symfony Applications
99-----------------------------------------
1010
11- If your application is using :doc: ` Symfony Flex < /setup/flex >`, run the
12- following commands :
11+ Run these commands to install both the PHP and JavaScript dependencies in your
12+ project :
1313
1414.. code-block :: terminal
1515
16- $ composer require encore
16+ $ composer require symfony/webpack- encore-bundle
1717 $ yarn install
1818
19- This will install and enable the `WebpackEncoreBundle `_, add the ``assets/ ``
20- directory, create a ``webpack.config.js `` file, and add ``node_modules/ `` to
21- ``.gitignore ``. If you are not using Symfony Flex, you'll need to create all
22- this by yourself following the instructions shown in the next section.
19+ If you are using :doc: `Symfony Flex </setup/flex >`, this will install and enable
20+ the `WebpackEncoreBundle `_, create the ``assets/ `` directory, add a
21+ ``webpack.config.js `` file, and add ``node_modules/ `` to ``.gitignore ``. You can
22+ skip the rest of this article and go write your first JavaScript and CSS by
23+ reading :doc: `/frontend/encore/simple-example `!
2324
24- Nice work! You can skip the rest of this article and go write your first
25- JavaScript and CSS by reading :doc: ` /frontend/encore/simple-example `!
25+ If you are not using Symfony Flex, you'll need to create all these directories
26+ and files by yourself following the instructions shown in the next section.
2627
2728Installing Encore in non Symfony Applications
2829---------------------------------------------
0 commit comments