Skip to content

Commit

Permalink
Reference webpack instead of brunch in README (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Nov 1, 2019
1 parent 1e4b054 commit 7d6a9d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -122,7 +122,7 @@ Assets are not re-compiled when you run `mix test`.
This can lead to confusion if you've made changes in javascript or css but tests are still failing.
There are two common ways to avoid this confusion.

The first solution is to run `brunch watch` from the assets directory.
The first solution is to run `webpack --mode development --watch` from the assets directory.
This will ensure that assets get recompiled after any changes.

The second solution is to add a new alias to your mix config that recompiles assets for you:
Expand All @@ -147,7 +147,9 @@ The second solution is to add a new alias to your mix config that recompiles ass
]

defp compile_assets(_) do
Mix.shell.cmd("assets/node_modules/brunch/bin/brunch build assets/")
Mix.shell().cmd("./assets/node_modules/webpack/bin/webpack.js --mode development",
quiet: true
)
end
```

Expand Down

0 comments on commit 7d6a9d7

Please sign in to comment.