How to enable debug flag Elm 0.18 in phoenix / elixir

I am starting a new project, trying to use both the phoenix frame and Elm. I have set up the project correctly, but I wanted 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. Thank.

+4
source share
2 answers

Add this to your brunch-config.json

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

I did not find that the brunch works very well with Elm and switched to gulp: see https://github.com/simonh1000/elm-phoenix-starter for configuration tips

+6
source

@niel Elm Slack elm-webpack-loader.

loader:  'elm-hot!elm-webpack?verbose=true&warn=true&debug=true'

Per @rtfeldman elm-webpack github repo, v3.1.0 .

, -.

0

Source: https://habr.com/ru/post/1663380/


All Articles