Skip to content

Commit d934349

Browse files
Sgoettschkesweaverryan
authored andcommitted
Fixing npm install for uglifyjs (wrong command, wrong version)
1 parent f6a032a commit d934349

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cookbook/assetic/uglifyjs.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ you need to `install node.js`_. Afterwards you can install UglifyJs using npm:
1616

1717
.. code-block:: bash
1818
19-
$ npm install -g uglifyjs
19+
$ npm install -g uglify-js@1
2020
2121
.. note::
2222

@@ -25,10 +25,16 @@ you need to `install node.js`_. Afterwards you can install UglifyJs using npm:
2525

2626
.. code-block:: bash
2727
28-
$ npm install uglifyjs /path/to/symfony/app/Resources
28+
$ npm install uglify-js@1 /path/to/symfony/app/Resources
2929
3030
It is recommended that you install UglifyJs in your ``app/Resources`` folder
3131
and add the ``node_modules`` folder to version control.
32+
33+
.. tip::
34+
35+
This cookbook uses UglifyJs 1 instead of the newer version 2 to be compatible
36+
with old assetic versions. If you wantt to use UglifyJs version 2, make sure
37+
to also use the assetic filter for this version and apply the correct configuration.
3238

3339
Configure the UglifyJs Filter
3440
-----------------------------

0 commit comments

Comments
 (0)