From Fedora Project Wiki
(init)
 
(Make a section for uglifyjs rather than place it under the jsmin heading)
 
(3 intermediate revisions by 3 users not shown)
Line 3: Line 3:
== jsmin ==
== jsmin ==


The [Licensing:Main#Bad_Licenses|license used for JSMin is non-free].  The [https://apps.fedoraproject.org/packages/python-slimit <code>python-slimit</code>] package provides an alternative implementation that can typically be used with only a trivial patch.
The [[Licensing:Main#Bad_Licenses|license used for JSMin is non-free]].   
 
== uglifyjs ==
The <code>uglifyjs</code> command, provided by the {{package|uglify-js}} package, may be used for minification. For example:
 
<pre>
uglifyjs your.js -c -m -o your.min.js
</pre>


== Google Closure Compiler ==
== Google Closure Compiler ==


The Google Closure Compiler [https://bugzilla.redhat.com/show_bug.cgi?id=725739#c4 contains bundled libraries and is unsuitable for Fedora].  Suggestions for alternatives are welcome.
The Google Closure Compiler is [https://admin.fedoraproject.org/pkgdb/package/closure-compiler/ packaged] for F21+.

Latest revision as of 21:00, 1 October 2016

This page tracks issues related to minification and/or compilation of JavaScript in Fedora.

jsmin

The license used for JSMin is non-free.

uglifyjs

The uglifyjs command, provided by the uglify-js package, may be used for minification. For example:

uglifyjs your.js -c -m -o your.min.js

Google Closure Compiler

The Google Closure Compiler is packaged for F21+.