Permalink
Browse files

Update resource URL if minified file exists.

  • Loading branch information...
1 parent a9e6001 commit 2d75836a2f3a200aaef7cf2aa1bbde36b3bae205 @martel0420 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 2d75836

Please sign in to comment.