|
1 | | -# grunt-contrib-uglify v2.2.0 [](https://travis-ci.org/gruntjs/grunt-contrib-uglify) [](https://ci.appveyor.com/project/gruntjs/grunt-contrib-uglify/branch/master) |
| 1 | +# grunt-contrib-uglify v2.2.1 [](https://travis-ci.org/gruntjs/grunt-contrib-uglify) [](https://ci.appveyor.com/project/gruntjs/grunt-contrib-uglify/branch/master) |
2 | 2 |
|
3 | 3 | > Minify JavaScript files with UglifyJS |
4 | 4 |
|
@@ -26,27 +26,6 @@ _Run this task with the `grunt uglify` command._ |
26 | 26 |
|
27 | 27 | Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide. |
28 | 28 |
|
29 | | -### Migrating from 2.x to 3.x |
30 | | - |
31 | | -Version `3.x` introduced changes to configuring source maps. Accordingly, if you don't use the source map options you should be able to upgrade seamlessly. If you do use source maps, see below. |
32 | | - |
33 | | -#### Removed options |
34 | | - |
35 | | -* `sourceMappingURL` - This is calculated automatically now |
36 | | -* `sourceMapPrefix` - No longer necessary for the above reason |
37 | | - |
38 | | -#### Changed options |
39 | | - |
40 | | -* `sourceMap` - Only accepts a `Boolean` value. Generates a map with a default name for you |
41 | | -* `sourceMapRoot` - The location of your sources is now calculated for you when `sourceMap` is set to `true` but you can set manual source root if needed |
42 | | - |
43 | | -#### New options |
44 | | - |
45 | | -* `sourceMapName` - Accepts a string or function to change the location or name of your map |
46 | | -* `sourceMapIncludeSources` - Embed the content of your source files directly into the map |
47 | | -* `expression` - Accepts a `Boolean` value. Parse a single expression (JSON or single functions) |
48 | | -* `quoteStyle` - Accepts integers `0` (default), `1`, `2`, `3`. Enforce or preserve quotation mark style. |
49 | | - |
50 | 29 | ### Options |
51 | 30 |
|
52 | 31 | This task primarily delegates to [UglifyJS2][], so please consider the [UglifyJS documentation][] as required reading for advanced configuration. |
@@ -549,6 +528,7 @@ grunt.initConfig({ |
549 | 528 |
|
550 | 529 | ## Release History |
551 | 530 |
|
| 531 | + * 2017-03-31 v2.2.1 Fix banner option. |
552 | 532 | * 2017-03-01 v2.2.0 Update uglify-js to v2.8.3. |
553 | 533 | * 2017-02-08 v2.1.0 Show size changes in output. Switch to `object.assign`. |
554 | 534 | * 2016-07-19 v2.0.0 Update uglify-js to v2.7.0. `screwIE8` is enabled by default. |
@@ -590,4 +570,4 @@ grunt.initConfig({ |
590 | 570 |
|
591 | 571 | Task submitted by ["Cowboy" Ben Alman](http://benalman.com) |
592 | 572 |
|
593 | | -*This file was generated on Wed Mar 01 2017 09:37:05.* |
| 573 | +*This file was generated on Fri Mar 31 2017 12:54:16.* |
0 commit comments