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 1621071

Browse filesBrowse files
committed
Update uglifyjs.rst
1 parent 2258ac9 commit 1621071
Copy full SHA for 1621071

File tree

Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed

‎cookbook/assetic/uglifyjs.rst

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