File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,23 @@ Then, install Encore into your project with Yarn:
11
11
12
12
.. note ::
13
13
14
- If you want to use `npm `_ instead of `yarn `_, replace ``yarn add xxx --dev `` by
15
- ``npm install xxx --save-dev ``.
14
+ If you want to use `npm `_ instead of `yarn `_:
15
+
16
+ .. code-block :: terminal
17
+
18
+ $ npm install @symfony/webpack-encore --save-dev
16
19
17
20
.. tip ::
18
21
19
- If you are using Flex for your project, you can install Encore via:
22
+ If you are using Flex for your project, you can initialize your project for Encore via:
20
23
21
24
.. code-block :: terminal
22
25
23
26
$ composer require encore
24
27
28
+ This will create a ``webpack.config.js `` file, add the ``assets/ `` directory, and add ``node_modules/ `` to
29
+ ``.gitignore ``.
30
+
25
31
This command creates (or modifies) a ``package.json `` file and downloads dependencies
26
32
into a ``node_modules/ `` directory. When using Yarn, a file called ``yarn.lock ``
27
33
is also created/updated. When using npm 5, a ``package-lock.json `` file is created/updated.
You can’t perform that action at this time.
0 commit comments