Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ELM_DEBUG environment variable #17

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

JohanWinther
Copy link
Contributor

Problem

When developing the UI it can be a bit cumbersome to manually edit webpack.dev.js to enable Elm's debugger and also there's a risk of committing this change.

Solution

The dev server reads from the environment variable ELM_DEBUG to set enable Elm's debugger.

Caveats/Notes

I think I recall seeing some documentation that the Elm executable itself supporting this environment variable, but I can't find the documentation for this right now. The env variable is not supported natively by the elm-webpack-loader though (I checked).

Add hint in quote block to avoid confusion with the instructions.
Copy link
Member

@hojberg hojberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

@hojberg hojberg merged commit 642b586 into unisonweb:main Nov 1, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants