File tree 4 files changed +17
-9
lines changed
4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change
1
+ v0.11.1:
2
+ date: 2016-01-29
3
+ changes:
4
+ - switch to lodash ^4.0.1
5
+ - switch to grunt-contrib-clean ^0.7.0
6
+ - switch to grunt-contrib-jshint ^0.12.0
1
7
v0.11.0:
2
8
date: 2015-11-20
3
9
changes:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " grunt-contrib-uglify" ,
3
3
"description" : " Minify files with UglifyJS" ,
4
- "version" : " 0.11.0 " ,
4
+ "version" : " 0.11.1 " ,
5
5
"author" : {
6
6
"name" : " Grunt Team" ,
7
7
"url" : " http://gruntjs.com/"
16
16
},
17
17
"dependencies" : {
18
18
"chalk" : " ^1.0.0" ,
19
- "lodash" : " ^3.2.0 " ,
20
- "maxmin" : " ^1 .0.0" ,
19
+ "lodash" : " ^4.0.1 " ,
20
+ "maxmin" : " ^2 .0.0" ,
21
21
"uglify-js" : " ~2.6.0" ,
22
22
"uri-path" : " ^1.0.0"
23
23
},
24
24
"devDependencies" : {
25
25
"grunt" : " ^0.4.2" ,
26
26
"grunt-cli" : " ^0.1.13" ,
27
- "grunt-contrib-clean" : " ^0.6 .0" ,
27
+ "grunt-contrib-clean" : " ^0.7 .0" ,
28
28
"grunt-contrib-internal" : " ^0.4.12" ,
29
- "grunt-contrib-jshint" : " ^0.11 .0" ,
29
+ "grunt-contrib-jshint" : " ^0.12 .0" ,
30
30
"grunt-contrib-nodeunit" : " ^0.4.0"
31
31
},
32
32
"peerDependencies" : {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ var path = require('path');
13
13
var UglifyJS = require ( 'uglify-js' ) ;
14
14
var _ = require ( 'lodash' ) ;
15
15
var uriPath = require ( 'uri-path' ) ;
16
+ var getOutputOptions ;
16
17
17
18
exports . init = function ( grunt ) {
18
19
var exports = { } ;
@@ -196,7 +197,7 @@ exports.init = function(grunt) {
196
197
return result ;
197
198
} ;
198
199
199
- var getOutputOptions = function ( options , dest ) {
200
+ getOutputOptions = function ( options , dest ) {
200
201
var outputOptions = {
201
202
beautify : false ,
202
203
source_map : null
Original file line number Diff line number Diff line change 11
11
var path = require ( 'path' ) ;
12
12
var chalk = require ( 'chalk' ) ;
13
13
var maxmin = require ( 'maxmin' ) ;
14
+ var err ;
14
15
15
16
// Return the relative path from file1 => file2
16
17
function relativePath ( file1 , file2 ) {
@@ -98,7 +99,7 @@ module.exports = function(grunt) {
98
99
try {
99
100
options . generatedSourceMapName = mapNameGenerator ( f . dest ) ;
100
101
} catch ( e ) {
101
- var err = new Error ( 'SourceMap failed.' ) ;
102
+ err = new Error ( 'SourceMap failed.' ) ;
102
103
err . origError = e ;
103
104
grunt . fail . warn ( err ) ;
104
105
}
@@ -114,7 +115,7 @@ module.exports = function(grunt) {
114
115
try {
115
116
options . sourceMapIn = mapInNameGenerator ( src [ 0 ] ) ;
116
117
} catch ( e ) {
117
- var err = new Error ( 'SourceMapInName failed.' ) ;
118
+ err = new Error ( 'SourceMapInName failed.' ) ;
118
119
err . origError = e ;
119
120
grunt . fail . warn ( err ) ;
120
121
}
@@ -139,7 +140,7 @@ module.exports = function(grunt) {
139
140
result = uglify . minify ( src , f . dest , options ) ;
140
141
} catch ( e ) {
141
142
console . log ( e ) ;
142
- var err = new Error ( 'Uglification failed.' ) ;
143
+ err = new Error ( 'Uglification failed.' ) ;
143
144
if ( e . message ) {
144
145
err . message += '\n' + e . message + '. \n' ;
145
146
if ( e . line ) {
You can’t perform that action at this time.
0 commit comments