elm-phoenix-example icon indicating copy to clipboard operation
elm-phoenix-example copied to clipboard

Webpack may be overkill.

Open ronanyeah opened this issue 8 years ago • 5 comments

https://maximilianhoffmann.com/posts/how-to-compile-elm-files-on-save

ronanyeah avatar May 01 '17 19:05 ronanyeah

As phoenix comes with brunch, it may be a good option to use elm-brunch: https://github.com/madsflensted/elm-brunch Works well. I've only encountered problem when deploying to production with Travis (sometimes build ends, sometines it doesn't). It is still possible to push compiled file and not ask build to compile them.

dominique-vassard avatar Aug 17 '17 09:08 dominique-vassard

No Brunch was a deliberate decision. I'm sure it is fine for simple JS builds but I was constantly running into problems when I wanted to do anything else. Even the Brunch website doesn't really recommend it over Webpack.

sometimes build ends, sometines it doesn't

Exactly.

ronanyeah avatar Aug 17 '17 10:08 ronanyeah

Thanks a bunch for this! I would only call it at least something like FooBar, so it's a bit easier to search/replace across the project.

mxgrn avatar Oct 01 '17 14:10 mxgrn

@mxgrn I would recommend initialising a project yourself (mix phx.new fooBar --no-brunch) rather than trusting a search/replace. (Speaking from experience!!)

ronanyeah avatar Oct 06 '17 23:10 ronanyeah

@mxgrn Thanks a bunch for this! You mean, thanks a brunch, right?

hickscorp avatar Dec 24 '17 15:12 hickscorp