Skip to content

Commit d084e99

Browse files
nabbisenjaviereguiluz
authored andcommitted
add a note about npm commands equivalent to yarn's
1 parent f40ec08 commit d084e99

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)