Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd934349

Browse files
Sgoettschkesweaverryan
authored andcommitted
Fixing npm install for uglifyjs (wrong command, wrong version)
1 parentf6a032a commitd934349

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎cookbook/assetic/uglifyjs.rst

Lines 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 -guglifyjs
19+
$ npm install -guglify-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 installuglifyjs /path/to/symfony/app/Resources
28+
$ npm installuglify-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)

[8]ページ先頭

©2009-2025 Movatter.jp