elixirphoenix-frameworkelmbrunch

How to enable the debug flag of Elm 0.18 in phoenix/elixir


I am starting a new project trying to use both the Phoenix framework and Elm. I have the project setup properly, but I was wanting to enable the debugger that was released in Elm 0.18 in my project. Does anyone know how to enable the --debug flag with Brunch or Phoenix. Thanks.


Solution

  • Add this to your brunch-config.json

    elmBrunch: {
        makeParameters : ['--debug']
    },
    

    I've not found brunch to work very well with Elm and switched to gulp: take a look at https://github.com/simonh1000/elm-phoenix-starter for config advice