This is how the clojure compiler is used in the elm-mdl makefile:
java -jar closure-compiler.jar -O ADVANCED --assume_function_wrapper --js
elm.js > /tmp/elm.js && mv /tmp/elm.js elm.js
I just tried it on one of my own projects and it seems to work fine.
mandag 12. september 2016 23.03.02 UTC+2 skrev Dmytro Gladkyi følgende:
>
> I just use gulp-minify from npmjs:
>
> var minify = require("gulp-minify");
>
>
> gulp.task("minify", ["build-elm"], function() { return
> gulp.src("./elm.js") //elm.js is what elm-make outputs .pipe(minify())
> .pipe(gulp.dest("./"));});
>
>
> I also tried Google Closure Compiler - but it gave me errors regarding
> uninitialized variables from elm lib
>
>
> On Monday, September 12, 2016 at 7:29:47 PM UTC+3, Jim Freeze wrote:
>>
>> Hi
>>
>> I can't seem to find in the docs how to minimize the javascript for
>> production.
>>
>> Does elm provide these tools or are we to use other tools to uglify and
>> minimize the javascript?
>>
>> Thank you.
>>
>> --
>> Dr. Jim Freeze, Ph.D.
>> (m) 512 949 9683
>>
>
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.