Skip to content

Commit 1c4ad06

Browse files
committed
Add support for ELM_DEBUG env var
1 parent 12f36aa commit 1c4ad06

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This is the UI you see when you type `ui` into `ucm`.
1919

2020
4. Visit `http://localhost:1234` in a browser.
2121

22+
> 💡 Set the environment variable `ELM_DEBUG=1` before starting the dev server to enable Elm's time-travelling debugger.
23+
2224
## Dependencies
2325

2426
This depends on the [ui-core package](https://github.com/unisonweb/ui-core) via

webpack.dev.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const postcssPresetEnv = require("postcss-preset-env");
44
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
55

66
const API_URL = process.env.API_URL || "127.0.0.1:8080";
7+
const ELM_DEBUG = process.env.ELM_DEBUG || false;
78
const UI_CORE_SRC = "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src";
89

910
module.exports = {
@@ -63,7 +64,7 @@ module.exports = {
6364
{
6465
loader: "elm-webpack-loader",
6566
options: {
66-
debug: false,
67+
debug: ELM_DEBUG,
6768
cwd: __dirname,
6869
},
6970
},

0 commit comments

Comments
 (0)