Skip to content

Commit

Permalink
Release 7.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinheghan committed Aug 26, 2020
1 parent 7d00829 commit c908242
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,31 @@ will cause the compiler to look for **all** elm source files in the specified di
approach is recommended as it allows the compile to watch elm.json as well as every file
in the source directories.

#### ForceWatch (default false)
#### Optimize (default is true in production mode)

This loader will infer if you are running webpack in watch mode by checking the webpack arguments.
If you are running webpack programmatically and wants to force this behaviour you can add
`forceWatch=true` to the loader:
Set this to true to compile bundle in optimized mode. See <https://elm-lang.org/0.19.0/optimize> for more information.

```js
...
use: {
loader: 'elm-webpack-loader',
options: {
forceWatch: true
optimize: true
}
}
...
```

#### Optimize (default false)
#### Debug (default is true in development mode)

When building a production bundle it is recommended to pass the `--optimize` flag to Elm make. See <https://elm-lang.org/0.19.0/optimize>
Set this to true to enable Elm's time traveling debugger.

```js
...
use: {
loader: 'elm-webpack-loader',
options: {
optimize: true
debug: true
}
}
...
Expand Down Expand Up @@ -229,9 +227,13 @@ in the example.

## Revisions

### 6.0.2
### 7.0.0

- Logs build output directly to stdout to retain formatting
- Logs build output directly to stdout to retain formatting.
- Remove stack trace for errors, as they're never relevant.
- `optimize` and `debug` flags are now set by default depending on the webpack mode.
- Removed several options which provide little benefit.
- Reduced number of dependencies.

### 6.0.0

Expand All @@ -242,7 +244,6 @@ in the example.

- Support for Elm 0.19, drops support for Elm 0.18.


### 4.3.1

- Fix a bug where maxInstances might end up being higher than expected
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elm-webpack-loader",
"version": "6.0.2",
"version": "7.0.0",
"description": "Webpack loader for the Elm programming language.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c908242

Please sign in to comment.