Skip to content

Commit 3105f8d

Browse files
committed
v3.2.1.
1 parent 602ced4 commit 3105f8d

File tree

3 files changed

+32
-28
lines changed

3 files changed

+32
-28
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v3.2.1:
2+
date: 2017-11-26
3+
changes:
4+
- Update uglify-js to v3.2.0.
15
v3.1.0:
26
date: 2017-09-11
37
changes:

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# grunt-contrib-uglify v3.1.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-uglify.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-uglify) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/ybtf5vbvtenii561/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-uglify/branch/master)
1+
# grunt-contrib-uglify v3.2.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-uglify.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-uglify) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/ybtf5vbvtenii561/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-uglify/branch/master)
22

33
> Minify JavaScript files with UglifyJS
44
@@ -51,94 +51,94 @@ sourceMapUrl | sourceMap.url
5151

5252

5353
#### mangle
54-
Type: `Boolean` `Object`
54+
Type: `Boolean` `Object`
5555
Default: `{}`
5656

5757
Turn on or off mangling with default options. If an `Object` is specified, it is passed directly to `ast.mangle_names()` *and* `ast.compute_char_frequency()` (mimicking command line behavior). [View all options here](https://github.com/mishoo/UglifyJS2#mangler-options).
5858

5959
#### compress
60-
Type: `Boolean` `Object`
60+
Type: `Boolean` `Object`
6161
Default: `{}`
6262

6363
Turn on or off source compression with default options. If an `Object` is specified, it is passed as options to `UglifyJS.Compressor()`. [View all options here](https://github.com/mishoo/UglifyJS2#compressor-options).
6464

6565
#### beautify
66-
Type: `Boolean` `Object`
66+
Type: `Boolean` `Object`
6767
Default: `false`
6868

6969
Turns on beautification of the generated source code. [View all options here](https://github.com/mishoo/UglifyJS2#beautifier-options)
7070

7171
###### parse.expression
72-
Type: `Boolean`
72+
Type: `Boolean`
7373
Default: `false`
7474

7575
Parse a single expression, rather than a program (for parsing JSON)
7676

7777
#### report
78-
Type: `string`
79-
Choices: `'min'`, `'gzip'`
78+
Type: `string`
79+
Choices: `'min'`, `'gzip'`
8080
Default: `'min'`
8181

8282
Report minification result or both minification and gzip results.
8383
This is useful to see exactly how well uglify-js is performing but using `'gzip'` will make the task take 5-10x longer to complete. [Example output](https://github.com/sindresorhus/maxmin#readme).
8484

8585
#### sourceMap
86-
Type: `Boolean`
86+
Type: `Boolean`
8787
Default: `false`
8888

8989
If `true`, a source map file will be generated in the same directory as the `dest` file. By default it will have the same basename as the `dest` file, but with a `.map` extension.
9090

9191
#### sourceMapName
92-
Type: `String` `Function`
92+
Type: `String` `Function`
9393
Default: `undefined`
9494

9595
To customize the name or location of the generated source map, pass a string to indicate where to write the source map to. If a function is provided, the uglify destination is passed as the argument and the return value will be used as the file name.
9696

9797
#### sourceMapIn
98-
Type: `String` `Function`
98+
Type: `String` `Function`
9999
Default: `undefined`
100100

101101
The location of an input source map from an earlier compilation, e.g. from CoffeeScript. If a function is provided, the
102102
uglify source is passed as the argument and the return value will be used as the sourceMap name. This only makes sense
103103
when there's one source file.
104104

105105
#### sourceMap.includeSources
106-
Type: `Boolean`
106+
Type: `Boolean`
107107
Default: `false`
108108

109109
Pass this flag if you want to include the content of source files in the source map as sourcesContent property.
110110

111111
###### sourceMap.root
112-
Type: `String`
112+
Type: `String`
113113
Default: `undefined`
114114

115115
With this option you can customize root URL that browser will use when looking for sources.
116116

117117
If the sources are not absolute URLs after prepending of the `sourceMap.root`, the sources are resolved relative to the source map.
118118

119119
#### sourceMap.url
120-
Type: `String`
120+
Type: `String`
121121
Default: `undefined`
122122

123123
Override the calculated value for `sourceMappingURL` in the source map. This is useful if the source map location is not relative to the base path of the minified file, i.e. when using a CDN
124124

125125
#### wrap
126-
Type: `String`
126+
Type: `String`
127127
Default: `undefined`
128128

129129
Wrap all of the code in a closure, an easy way to make sure nothing is leaking.
130130
For variables that need to be public `exports` and `global` variables are made available.
131131
The value of wrap is the global variable exports will be available as.
132132

133133
#### output.ascii_only
134-
Type: `Boolean`
134+
Type: `Boolean`
135135
Default: `false`
136136

137137
Enables to encode non-ASCII characters as \uXXXX.
138138

139139
#### output.comments
140-
Type: `Boolean` `String` `Function`
141-
Default: `undefined`
140+
Type: `Boolean` `String` `Function`
141+
Default: `undefined`
142142
Options: `false` `'all'` `'some'`
143143

144144
Turn on preservation of comments.
@@ -150,51 +150,51 @@ Turn on preservation of comments.
150150
- `RegExp` `'/[RegExp]/'` will preserve comments matching given RegExp or stringified RegExp
151151

152152
#### banner
153-
Type: `String`
153+
Type: `String`
154154
Default: `''`
155155

156156
This string will be prepended to the minified output. Template strings (e.g. `<%= config.value %>` will be expanded automatically.
157157

158158
#### footer
159-
Type: `String`
159+
Type: `String`
160160
Default: `''`
161161

162162
This string will be appended to the minified output. Template strings (e.g. `<%= config.value %>` will be expanded automatically.
163163

164164
#### ie8
165-
Type: `Boolean`
165+
Type: `Boolean`
166166
Default: `false`
167167

168168
Set this to `true` if you still care about full compliance with Internet Explorer 6-8 quirks.
169169

170170
#### mangle.properties
171-
Type: `Boolean` `Object`
171+
Type: `Boolean` `Object`
172172
Default: `false`
173173

174174
Turn on or off property mangling with default options. If an `Object` is specified, it is passed directly to `ast.mangle_properties()` (mimicking command line behavior). [View all options here](https://github.com/mishoo/UglifyJS2#mangler-options).
175175

176176
#### reserveDOMProperties
177-
Type: `Boolean`
177+
Type: `Boolean`
178178
Default: `false`
179179

180180
Use this flag in conjunction with `mangle.properties` to prevent built-in browser object properties from being mangled.
181181

182182
#### exceptionsFiles
183-
Type: `Array`
183+
Type: `Array`
184184
Default: `[]`
185185

186186
Use this with `mangle.properties` to pass one or more JSON files containing a list of variables and object properties
187187
that should not be mangled. See the [UglifyJS docs](https://www.npmjs.com/package/uglify-js) for more info on the file syntax.
188188

189189
#### nameCache
190-
Type: `String`
190+
Type: `String`
191191
Default: `''`
192192

193193
A string that is a path to a JSON cache file that uglify will create and use to coordinate symbol mangling between
194194
multiple runs of uglify. Note: this generated file uses the same JSON format as the `exceptionsFiles` files.
195195

196196
#### output.quote_style
197-
Type: `Integer`
197+
Type: `Integer`
198198
Default: `0`
199199

200200
Preserve or enforce quotation mark style.
@@ -525,7 +525,7 @@ grunt.initConfig({
525525

526526
## Release History
527527

528-
* 2017-11-26   v3.2.0   Update uglify-js to v3.2.0.
528+
* 2017-11-26   v3.2.1   Update uglify-js to v3.2.0.
529529
* 2017-09-11   v3.1.0   Update uglify-js to v3.1.0.
530530
* 2017-05-20   v3.0.1   Fix toplevel option.
531531
* 2017-05-12   v3.0.0   Update uglify-js to v3.0.4.
@@ -572,4 +572,4 @@ grunt.initConfig({
572572

573573
Task submitted by ["Cowboy" Ben Alman](http://benalman.com)
574574

575-
*This file was generated on Mon Sep 11 2017 13:21:40.*
575+
*This file was generated on Sun Nov 26 2017 08:57:08.*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-contrib-uglify",
33
"description": "Minify JavaScript files with UglifyJS",
4-
"version": "3.2.0",
4+
"version": "3.2.1",
55
"author": {
66
"name": "Grunt Team",
77
"url": "http://gruntjs.com/"

0 commit comments

Comments
 (0)