From 7c7e69521840ef1f6d939a754db63bbfdc41af44 Mon Sep 17 00:00:00 2001 From: netpro2k Date: Thu, 13 Mar 2014 15:34:12 -0600 Subject: [PATCH] Don't apply extension automatically, makes it impossible to keep existing extension without issue (see https://github.com/gruntjs/grunt-contrib-compress/issues/79) if the user wishes to add an extension they can do so via ext or rename. --- tasks/lib/compress.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tasks/lib/compress.js b/tasks/lib/compress.js index 74a0f2e..4a17759 100644 --- a/tasks/lib/compress.js +++ b/tasks/lib/compress.js @@ -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));