Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d934349

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

File tree

Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed

‎cookbook/assetic/uglifyjs.rst

Copy file name to clipboardExpand all lines: cookbook/assetic/uglifyjs.rst
+8-2Lines changed: 8 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.