     text = fs.readFileSync path, 'utf8'
     minified = ren path, text, assetsPath, renamed
     hashed = hash(minified)
-    ext = extname path
-
-    out = join outputPath, "#{hashed}#{ext}"
+    parsed = parsePath path
+    out = join outputPath, "#{parsed.name}-#{hashed}#{parsed.ext}"
     fs.writeFileSync out, minified, 'utf8'
     renamed[path] = out
 

          minified = minifyScript(absPath, script)
          hashed = hash(minified)
          
          ext = extname absPath
          out = join outputPath, "#{hashed}#{ext}"
          fs.writeFileSync out, minified
          renamed[absPath] = out


join         = require('path').join
minifyImage  = require './minify-image'
minifyScript = require './minify-javascript'
parsePath    = require('path').parse
parseCssUrl  = require './parse-css-url'
extname      = require('path').extname

