Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31d14b3

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Update installation.rst
2 parents91aa810 +bc3107b commit31d14b3

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 requiresymfony/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-
JavaScriptandCSS byreading:doc:`/frontend/encore/simple-example`!
25+
If you are not using Symfony Flex, you'll need to create all these directories
26+
andfiles byyourself following the instructions shown in the next section.
2627

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp