Skip to content

Commit 987a31a

Browse files
Geert Eltinkweaverryan
Geert Eltink
authored andcommitted
Improve assetic:watch text
1 parent 8c38ec8 commit 987a31a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cookbook/assetic/asset_management.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,17 @@ need to dump them manually. To do so, run the following:
540540
541541
This physically writes all of the asset files you need for your ``dev``
542542
environment. The big disadvantage is that you need to run this each time
543-
you update an asset. Fortunately, by passing the ``--watch`` option, the
544-
command will automatically regenerate assets *as they change*:
543+
you update an asset. Fortunately, by using ``assetic:watch`` command, the
544+
assets will be regenerated automatically *as they change*:
545545

546546
.. code-block:: bash
547547
548548
$ php app/console assetic:watch
549549
550+
The ``assetic:watch`` command was introduced in AsseticBundle 2.4. In prior
551+
versions, you had to use the ``--watch`` option of the ``assetic:dump``
552+
command for the same behavior.
553+
550554
Since running this command in the ``dev`` environment may generate a bunch
551555
of files, it's usually a good idea to point your generated asset files to
552556
some isolated directory (e.g. ``/js/compiled``), to keep things organized:

0 commit comments

Comments
 (0)