madsflensted / elm-brunch

Brunch plugin to compile Elm code
MIT License
74 stars 31 forks source link

not possible to join or uglify #5

Open HusseinMorsy opened 8 years ago

HusseinMorsy commented 8 years ago

I have the problem that elm-brunch directly compiles to files in the destination folder. So brunch can't join the compiled elm files with other javascripts files, nor is it possible to uglify.

Other brunch plugins, like coffescript-brunch returns the content of compiled file to the callback instead of directly writing to the destination folder.

Do you have any idea to solve the problem ?

madsflensted commented 8 years ago

Currently the elm compiler will bundle all the elm related libraries together, and does it's own management of dependencies. And the way this is handled are about to change in the upcoming releases of the elm compiler / make utility. So I have not tried to do anything fancy to pass generated javascript down the brunch pipeline.

I am sure there is a way to get brunch to take the generated javascript and post-process it if you need to, but just have haven't needed it.

AlexKovalevych commented 7 years ago

Any news on this one?