    :target (.getName (file target))
    :original-size (total-size sources)})
 
-(defn minify-js [path target & [{:keys [quiet? externs optimization]
+(defn minify-js [path target & [{:keys [quiet? externs optimization language]
                                  :or {quiet? false
+                                      language :ecmascript3
                                       externs []
                                       optimization :simple}}]]
   (delete-target target)

           [com.google.javascript.jscomp
            CompilationLevel
            CompilerOptions
            SourceFile]))

(defn- delete-target [target]
  (let [f (file target)]

      (.setOptionsForCompilationLevel options))
  options)

(defn- compile-js [compiler assets externs optimization language]
  (let [options  (-> (CompilerOptions.)
                     (doto (.setLanguage (-> language
                                             (name)
                                             (.toUpperCase)
                                             (CompilerOptions$LanguageMode/fromString))))
                     (doto (.setOutputCharset "UTF-8"))
                     (set-optimization optimization))]

