|
82 | 82 | //Right now only the following values
|
83 | 83 | //are supported:
|
84 | 84 | //- "uglify": (default) uses UglifyJS to minify the code.
|
| 85 | + //- "uglify2": in version 2.1.2+. Uses UglifyJS2. |
85 | 86 | //- "closure": uses Google's Closure Compiler in simple optimization
|
86 | 87 | //mode to minify the code. Only available if running the optimizer using
|
87 | 88 | //Java.
|
|
99 | 100 | //files.
|
100 | 101 | skipDirOptimize: false,
|
101 | 102 |
|
102 |
| - //Introduced in 2.1.2: If the minifier specified in the "optimize" option |
103 |
| - //supports generating source maps for the minfied code, then generate them. |
104 |
| - //The source maps generated only translate minified JS to non-minified |
105 |
| - //JS, it does not do anything magical for translating minfied JS to |
106 |
| - //transpiled source code. |
107 |
| - //Currently only optimize: "closure" when running under Java is supported, |
108 |
| - //and only with a closure compiler jar build after r1592 (20111114 release). |
| 103 | + //Introduced in 2.1.2 and considered experimental. |
| 104 | + //If the minifier specified in the "optimize" option supports generating |
| 105 | + //source maps for the minfied code, then generate them. The source maps |
| 106 | + //generated only translate minified JS to non-minified JS, it does not do |
| 107 | + //anything magical for translating minfied JS to transpiled source code. |
| 108 | + //Currently only optimize: "uglify2" is supported when running in node or |
| 109 | + //rhino, and if running in rhino, "closure" with a closure compiler jar |
| 110 | + //build after r1592 (20111114 release). |
| 111 | + //The source files will show up in a browser developer tool that supports |
| 112 | + //source maps as ".js.src" files. |
109 | 113 | generateSourceMaps: false,
|
110 | 114 |
|
111 | 115 | //Introduced in 2.1.1: If a full directory optimization ("dir" is used), and
|
|
150 | 154 | no_mangle: true
|
151 | 155 | },
|
152 | 156 |
|
| 157 | + //If using UglifyJS for script optimization, these config options can be |
| 158 | + //used to pass configuration values to UglifyJS. |
| 159 | + //See https://github.com/mishoo/UglifyJS2 for possible values. |
| 160 | + uglify2: {}, |
| 161 | + |
153 | 162 | //If using Closure Compiler for script optimization, these config options
|
154 | 163 | //can be used to configure Closure Compiler. See the documentation for
|
155 | 164 | //Closure compiler for more information.
|
|
0 commit comments