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

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


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

