elm-phoenix-example
elm-phoenix-example copied to clipboard
Webpack may be overkill.
https://maximilianhoffmann.com/posts/how-to-compile-elm-files-on-save
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.
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.
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 I would recommend initialising a project yourself (mix phx.new fooBar --no-brunch) rather than trusting a search/replace. (Speaking from experience!!)
@mxgrn Thanks a bunch for this!
You mean, thanks a brunch, right?