File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,11 @@ your JavaScripts:
111
111
112
112
You now have access to the ``uglifyjs2 `` filter in your application.
113
113
114
- Configure the ``node binary ``
115
- ----------------------------------
114
+ Configure the ``node `` Binary
115
+ -----------------------------
116
116
117
- he name of the binary is node you can skip this section.
117
+ Assetic tries to find the node binary automatically. If it cannot be found, you'll
118
+ be able to configure its location using the ``node `` key:
118
119
119
120
.. configuration-block ::
120
121
@@ -124,19 +125,30 @@ he name of the binary is node you can skip this section.
124
125
assetic :
125
126
# the path to the node executable
126
127
node : /usr/bin/nodejs
128
+ filters :
129
+ uglifyjs2 :
130
+ # the path to the uglifyjs executable
131
+ bin : /usr/local/bin/uglifyjs
127
132
128
133
.. code-block :: xml
129
134
130
135
<!-- app/config/config.xml -->
131
136
<assetic : config
132
- node =" /usr/bin/nodejs" >
137
+ node =" /usr/bin/nodejs" >
138
+ <assetic : filter
139
+ name =" uglifyjs2"
140
+ bin =" /usr/local/bin/uglifyjs" />
133
141
</assetic : config >
134
142
135
143
.. code-block :: php
136
144
137
145
// app/config/config.php
138
146
$container->loadFromExtension('assetic', array(
139
147
'node' => '/usr/bin/nodejs',
148
+ 'uglifyjs2' => array(
149
+ // the path to the uglifyjs executable
150
+ 'bin' => '/usr/local/bin/uglifyjs',
151
+ ),
140
152
));
141
153
142
154
Minify your Assets
You can’t perform that action at this time.
0 commit comments