Skip to content

Commit f3c629e

Browse files
committed
Tweak
1 parent c384c73 commit f3c629e

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

frontend/encore/simple-example.rst

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,23 @@ To build the assets, run:
6363
6464
# compile assets once
6565
$ yarn encore dev
66+
# if you prefer npm, run:
67+
$ npm run dev
6668
6769
# or, recompile assets automatically when files change
6870
$ yarn encore dev --watch
71+
# if you prefer npm, run:
72+
$ npm run watch
6973
7074
# on deploy, create a production build
7175
$ yarn encore production
76+
# if you prefer npm, run:
77+
$ npm run build
7278
7379
.. note::
7480

7581
Stop and restart ``encore`` each time you update your ``webpack.config.js`` file.
7682

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-
9283
Congrats! You now have three new files:
9384

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

0 commit comments

Comments
 (0)