Skip to content

Commit

Permalink
Don't apply extension automatically, makes it impossible to keep
Browse files Browse the repository at this point in the history
existing extension without issue (see
gruntjs#79) if the user
wishes to add an extension they can do so via ext or rename.
  • Loading branch information
netpro2k committed Mar 13, 2014
1 parent 3ccdbd7 commit 7c7e695
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tasks/lib/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ module.exports = function(grunt) {
return nextFile();
}

// Append ext if the specified one isnt there
if (typeof filePair.orig.ext === 'undefined') {
var ext = '.' + extension;
// if the chosen ext is different then the dest ext lets use it
if (String(filePair.dest).slice(-ext.length) !== ext) {
filePair.dest += ext;
}
}

// Ensure the dest folder exists
grunt.file.mkdir(path.dirname(filePair.dest));

Expand Down

0 comments on commit 7c7e695

Please sign in to comment.