Permalink
Browse files

Merge pull request #6 from martel0420/master

Resource URL should be updated even if the target minified file exists
  • Loading branch information...
2 parents a9e6001 + 2d75836 commit 9d3fc63dfe349a4cc1b0560d4ce1a19df45734e6 @cblock committed Aug 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/groovy/com/blockconsult/yuiminifyresources/Util.groovy
@@ -62,6 +62,8 @@ class Util {
File targetFile = new File(inputFile.parentFile, targetFileName)
if (targetFile.exists()) {
if (log.debugEnabled) log.debug "Skip minifying [$inputFile] as minified version exists. Using that version instead."
+ resource.processedFile = targetFile
+ resource.updateActualUrlFromProcessedFile()
return null
}

0 comments on commit 9d3fc63

Please sign in to comment.