Skip to content

Commit 36e9741

Browse files
desarrolla2daFish
authored and
daFish
committed
Update uglifyjs.rst
1 parent ff157a4 commit 36e9741

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

cookbook/assetic/uglifyjs.rst

+28
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,34 @@ your JavaScripts:
112112

113113
You now have access to the ``uglifyjs2`` filter in your application.
114114

115+
Configure the ``node binary``
116+
----------------------------------
117+
118+
he name of the binary is node you can skip this section.
119+
120+
.. configuration-block::
121+
122+
.. code-block:: yaml
123+
124+
# app/config/config.yml
125+
assetic:
126+
# the path to the node executable
127+
node: /usr/bin/nodejs
128+
129+
.. code-block:: xml
130+
131+
<!-- app/config/config.xml -->
132+
<assetic:config
133+
node="/usr/bin/nodejs">
134+
</assetic:config>
135+
136+
.. code-block:: php
137+
138+
// app/config/config.php
139+
$container->loadFromExtension('assetic', array(
140+
'node' => '/usr/bin/nodejs',
141+
));
142+
115143
Minify your Assets
116144
------------------
117145

0 commit comments

Comments
 (0)