grunt-contrib-uglify
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -104,2 +104,8 @@ # Options | ||
## footer | ||
Type: `String` | ||
Default: empty string | ||
This string will be append to the end of the minified output. It is processed using [grunt.template.process][], using the default options. | ||
_(Default processing options are explained in the [grunt.template.process][] documentation)_ | ||
@@ -106,0 +112,0 @@ |
{ | ||
"name": "grunt-contrib-uglify", | ||
"description": "Minify files with UglifyJS.", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-uglify", | ||
@@ -23,3 +23,2 @@ "author": { | ||
], | ||
"main": "Gruntfile.js", | ||
"engines": { | ||
@@ -26,0 +25,0 @@ "node": ">= 0.8.0" |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-uglify [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-uglify.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-uglify) | ||
# grunt-contrib-uglify v0.2.5 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-uglify.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-uglify) | ||
@@ -132,2 +132,8 @@ > Minify files with UglifyJS. | ||
#### footer | ||
Type: `String` | ||
Default: empty string | ||
This string will be append to the end of the minified output. It is processed using [grunt.template.process][], using the default options. | ||
_(Default processing options are explained in the [grunt.template.process][] documentation)_ | ||
@@ -335,2 +341,3 @@ | ||
* 2013-10-28 v0.2.5 Added warning for banners when using sourcemaps | ||
* 2013-09-02 v0.2.4 updated sourcemap format via /83 | ||
@@ -351,2 +358,2 @@ * 2013-06-10 v0.2.3 added footer option | ||
*This file was generated on Mon Sep 02 2013 11:35:39.* | ||
*This file was generated on Mon Oct 28 2013 17:07:45.* |
@@ -35,2 +35,9 @@ /* | ||
if (options.sourceMap && banner) { | ||
grunt.log.warn( | ||
"Grunt-contrib-uglify does not support adding a banner alongside sourcemaps. Add the banner to " + | ||
"your unminified source and then uglify." | ||
); | ||
} | ||
// Iterate over all src-dest file pairs. | ||
@@ -77,3 +84,3 @@ this.files.forEach(function(f) { | ||
} catch (e) { | ||
var err = new Error('SourceMapName failed.'); | ||
var err = new Error('SourceMappingURL failed.'); | ||
err.origError = e; | ||
@@ -90,4 +97,7 @@ grunt.fail.warn(err); | ||
var err = new Error('Uglification failed.'); | ||
if (e.msg) { | ||
err.message += ', ' + e.msg + '.'; | ||
if (e.message) { | ||
err.message += '\n' + e.message + '. \n'; | ||
if (e.line) { | ||
err.message += 'Line ' + e.line + ' in ' + src + '\n'; | ||
} | ||
} | ||
@@ -94,0 +104,0 @@ err.origError = e; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43945
522
357