Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-contrib-uglify

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-contrib-uglify - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

9

docs/uglify-examples.md

@@ -98,9 +98,8 @@ # Usage examples

sourceMapIn: 'example/coffeescript-sourcemap.js', // input sourcemap from a previous compilation
}
},
files: {
'dest/output.min.js': ['src/input.js']
}
}
}
'dest/output.min.js': ['src/input.js'],
},
},
},
});

@@ -107,0 +106,0 @@ ```

@@ -5,3 +5,3 @@ /*

*
* Copyright (c) 2012 "Cowboy" Ben Alman, contributors
* Copyright (c) 2013 "Cowboy" Ben Alman, contributors
* Licensed under the MIT license.

@@ -47,2 +47,7 @@ */

},
no_src: {
files: {
'tmp/compress_mangle.js': []
}
},
compress_mangle_except: {

@@ -49,0 +54,0 @@ files: {

{
"name": "grunt-contrib-uglify",
"description": "Minify files with UglifyJS.",
"version": "0.2.2",
"version": "0.2.3",
"homepage": "https://github.com/gruntjs/grunt-contrib-uglify",

@@ -6,0 +6,0 @@ "author": {

@@ -132,2 +132,8 @@ # grunt-contrib-uglify [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-uglify.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-uglify)

#### 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)_

@@ -235,9 +241,8 @@

sourceMapIn: 'example/coffeescript-sourcemap.js', // input sourcemap from a previous compilation
}
},
files: {
'dest/output.min.js': ['src/input.js']
}
}
}
'dest/output.min.js': ['src/input.js'],
},
},
},
});

@@ -350,2 +355,2 @@ ```

*This file was generated on Fri May 31 2013 16:43:42.*
*This file was generated on Mon Jul 22 2013 11:01:57.*

@@ -5,3 +5,3 @@ /*

*
* Copyright (c) 2012 "Cowboy" Ben Alman, contributors
* Copyright (c) 2013 "Cowboy" Ben Alman, contributors
* Licensed under the MIT license.

@@ -8,0 +8,0 @@ */

@@ -5,3 +5,3 @@ /*

*
* Copyright (c) 2012 "Cowboy" Ben Alman, contributors
* Copyright (c) 2013 "Cowboy" Ben Alman, contributors
* Licensed under the MIT license.

@@ -22,2 +22,3 @@ */

banner: '',
footer: '',
compress: {

@@ -33,2 +34,3 @@ warnings: false

var banner = grunt.template.process(options.banner);
var footer = grunt.template.process(options.footer);
var mapNameGenerator, mappingURLGenerator;

@@ -48,2 +50,7 @@

if (src.length === 0) {
grunt.log.warn('Destination (' + f.dest + ') not written because src files were empty.');
return;
}
// function to get the name of the sourceMap

@@ -89,2 +96,3 @@ if (typeof options.sourceMap === "function") {

err.origError = e;
grunt.log.warn('Uglifying source "' + src + '" failed.');
grunt.fail.warn(err);

@@ -94,3 +102,3 @@ }

// Concat banner + minified source.
var output = banner + result.min;
var output = banner + result.min + footer;

@@ -111,3 +119,3 @@ // Write the destination file.

if (options.report) {
contrib.minMaxInfo(result.min, result.max, options.report);
contrib.minMaxInfo(output, result.max, options.report);
}

@@ -114,0 +122,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc