Skip to content

Commit

Permalink
Merge pull request #190 from tzemanovic/build-with-debugger
Browse files Browse the repository at this point in the history
Build with debugger
  • Loading branch information
halfzebra authored Oct 13, 2017
2 parents 5b40512 + 686e19e commit e93d25a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ module.exports = {
// Use the local installation of elm-make
loader: require.resolve('elm-webpack-loader'),
options: {
// If ELM_DEBUGGER was set to "true", enable it. Otherwise
// for invalid values, "false" and as a default, enable it
debug: process.env.ELM_DEBUGGER === 'true' ? true : false,
pathToMake: paths.elmMake
}
}
Expand Down
8 changes: 5 additions & 3 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can find the most recent version of this guide [here](https://github.com/hal
- [repl](#repl)
- [make](#make)
- [reactor](#reactor)
- [Turning off Elm Debugger](#turning-off-elm-debugger)
- [Turning on/off Elm Debugger](#turning-on-off-elm-debugger)
- [Changing the Page `<title>`](#changing-the-page-title)
- [Adding a Stylesheet](#adding-a-stylesheet)
- [Post-Processing CSS](#post-processing-css)
Expand Down Expand Up @@ -162,9 +162,11 @@ Alias for [elm-make](http://guide.elm-lang.org/get_started.html#elm-make)
Alias for [elm-reactor](http://guide.elm-lang.org/get_started.html#elm-reactor)


## Turning off Elm Debugger
## Turning on/off Elm Debugger

To turn off Elm Debugger, set `ELM_DEBUGGER` environment variable to `false`
By default, in production (`elm-app build`) the Debugger is turned off and in development mode (`elm-app start`) it's turned on.

To turn on/off Elm Debugger explicitly, set `ELM_DEBUGGER` environment variable to `true` or `false` respectively.

## Changing the base path of the assets in the HTML

Expand Down

0 comments on commit e93d25a

Please sign in to comment.