Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 488cc66

Browse files
committed
Merge branch '4.4'
* 4.4: Update installation.rst
2 parents 9445af1 + ede9bc8 commit 488cc66

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

frontend/encore/installation.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ Symfony application or not.
88
Installing 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

2728
Installing Encore in non Symfony Applications
2829
---------------------------------------------

0 commit comments

Comments
 (0)