 
 gzipPkg = (contents, filename, callback) =>
   file = path.join(@_outputDir, filename)
-  ext = if _str.endsWith filename, '.js' then '.jgz' else '.cgz'
+  ext = if _str.endsWith filename, '.js' then '.gz' else '.gz'
   outputFilename = file + ext
   zlib.gzip contents, (err, buf) ->
     fs.writeFile outputFilename, buf, callback

  if @mode is 'production'
    fingerprint = '-' + fingerprintForPkg('css', pkg) if @mode is 'production'
    src = (@cdnUrl ? @_assetsDir) + '/' + "#{pkg}#{fingerprint ? ''}.css"
    src += '.cgz' if gzip
    return "<link href='#{src}' rel='stylesheet' type='text/css'>"

  expandAssetGlobs()

  if @mode is 'production'
    fingerprint = '-' + fingerprintForPkg('jst', pkg) if @mode is 'production'
    src = (@cdnUrl ? @_assetsDir) + '/' + "#{pkg}#{fingerprint ? ''}.jst.js"
    src += '.gz' if gzip
    return "<script src='#{src}' type='text/javascript'></script>"

  expandAssetGlobs()
