@@ -8,21 +8,22 @@ Symfony application or not.
8
8
Installing Encore in Symfony Applications
9
9
-----------------------------------------
10
10
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 :
13
13
14
14
.. code-block :: terminal
15
15
16
- $ composer require encore
16
+ $ composer require symfony/webpack- encore-bundle
17
17
$ yarn install
18
18
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 `!
23
24
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.
26
27
27
28
Installing Encore in non Symfony Applications
28
29
---------------------------------------------
0 commit comments