Skip to content

Commit a75d773

Browse files
committed
v1.0.0
1 parent 5107d7d commit a75d773

File tree

6 files changed

+22
-6
lines changed

6 files changed

+22
-6
lines changed

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v1.0.0:
2+
date: 2016-03-04
3+
changes:
4+
- Use uglify-js ~2.6.2 to fix sourcemap issue.
5+
- Improving docs for global-defs and --define options.
6+
- Add 'sourceMapUrl' option.
7+
- add bare_returns option.
8+
- Optionally set report verbosity level using report option.
19
v0.11.1:
210
date: 2016-01-29
311
changes:

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# grunt-contrib-uglify v0.11.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)
1+
# grunt-contrib-uglify v1.0.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)
22

33
> Minify javascript files with UglifyJS
44
@@ -121,6 +121,12 @@ With this option you can customize root URL that browser will use when looking f
121121

122122
If the sources are not absolute URLs after prepending of the `sourceMapRoot`, the sources are resolved relative to the source map.
123123

124+
#### sourceMapUrl
125+
Type: `String`
126+
Default: `undefined`
127+
128+
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
129+
124130
###### enclose
125131
Type: `Object`
126132
Default: `undefined`
@@ -511,6 +517,7 @@ grunt.initConfig({
511517

512518
## Release History
513519

520+
* 2016-03-04   v1.0.0   Use uglify-js ~2.6.2 to fix sourcemap issue. Improving docs for global-defs and --define options. Add 'sourceMapUrl' option. add bare_returns option. Optionally set report verbosity level using report option.
514521
* 2016-01-29   v0.11.1   switch to lodash ^4.0.1 switch to grunt-contrib-clean ^0.7.0 switch to grunt-contrib-jshint ^0.12.0
515522
* 2015-11-20   v0.11.0   switch to uglify ~2.6.0
516523
* 2015-11-12   v0.10.1   switch to uglify ~2.5
@@ -546,4 +553,4 @@ grunt.initConfig({
546553

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

549-
*This file was generated on Tue Feb 02 2016 12:54:04.*
556+
*This file was generated on Fri Mar 04 2016 12:46:01.*

docs/uglify-options.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ Default: `false`
3131
Parse a single expression, rather than a program (for parsing JSON)
3232

3333
## report
34-
Choices: `'min'`, `'gzip'`
34+
Choices: `false, 'none', 'min'`, `'gzip'`
3535
Default: `'min'`
3636

3737
Either report only minification result or report minification and gzip results.
3838
This is useful to see exactly how well clean-css is performing but using `'gzip'` will make the task take 5-10x longer to complete. [Example output](https://github.com/sindresorhus/maxmin#readme).
39+
If false or 'none' is used the report will be generated on the verbose output.
3940

4041
## sourceMap
4142
Type: `Boolean`

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": "0.11.1",
4+
"version": "1.0.0",
55
"author": {
66
"name": "Grunt Team",
77
"url": "http://gruntjs.com/"

test/fixtures/expected/sourcemapin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/expected/sourcemapin_sources.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)