[elm-discuss] Re: Minimize Javascript for deploys

2016-09-13 Thread OvermindDL1
It works via brunch fine as well.

On Tuesday, September 13, 2016 at 3:02:22 AM UTC-6, Rupert Smith wrote:
>
> On Tuesday, September 13, 2016 at 9:19:27 AM UTC+1, Håkon Rossebø wrote:
>>
>> 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.
>>
>
> Working for me too, thanks. 
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Minimize Javascript for deploys

2016-09-13 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, September 13, 2016 at 9:19:27 AM UTC+1, Håkon Rossebø wrote:
>
> 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.
>

Working for me too, thanks. 

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Minimize Javascript for deploys

2016-09-13 Thread Håkon Rossebø
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Minimize Javascript for deploys

2016-09-12 Thread Dmytro Gladkyi
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.