Gibt es als Titel eine Möglichkeit, Optionen an UglifyJS2 zu übergeben, wenn Sie Assetic verwenden? Speziell muss ich die --comments
Option übergeben.Übergeben von Optionen an UglifyJS2 bei Verwendung von Assetic-Bundle
Ich habe versucht, die Möglichkeit, in dem ist Einstellung in meinem config.yml hinzuzufügen: bin: "%uglifyjs_bin_path% --comments"
, aber das wird nicht so laufen wie sie versucht --comments im Pfad enthalten:
[Assetic\Exception\FilterException]
An error occurred while running:
'/usr/bin/nodejs' '/usr/local/bin/uglifyjs --comments' '-o' '/tmp/assetic_ uglifyjs2_outyYVBye' '/tmp/assetic_uglifyjs2_ind932Xh' Error Output:
module.js:328throw err;
Error: Cannot find module '/usr/local/bin/uglifyjs --comments'at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3