Skip to content

Commit c384c73

Browse files
committed
minor #13861 add a note about npm commands equivalent to yarn's (nabbisen)
This PR was submitted for the 5.1 branch but it was merged into the 4.4 branch instead. Discussion ---------- add a note about npm commands equivalent to yarn's <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> I considered about which style was good to read. Finally, I used code-in-note style, which was used in [Sub-Domain Routing](https://symfony.com/doc/current/routing.html#sub-domain-routing) section. Commits ------- d084e99 add a note about npm commands equivalent to yarn's
2 parents f40ec08 + d084e99 commit c384c73

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

frontend/encore/simple-example.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ To build the assets, run:
7474

7575
Stop and restart ``encore`` each time you update your ``webpack.config.js`` file.
7676

77+
.. note::
78+
79+
If you prefer npm, run these commands instead:
80+
81+
.. code-block:: terminal
82+
83+
# compile assets once
84+
$ npm run dev
85+
86+
# or, recompile assets automatically when files change
87+
$ npm run watch
88+
89+
# on deploy, create a production build
90+
$ npm run build
91+
7792
Congrats! You now have three new files:
7893

7994
* ``public/build/app.js`` (holds all the JavaScript for your "app" entry)

0 commit comments

Comments
 (0)