README.md

# ExWebpack

Webpack compiler for those who dont want an entire Phoenix stack.
This was heavily inspired by [elixir_make](https://github.com/elixir-lang/elixir_make)
Also uses [Phoenix.Endpoint.Watcher](https://github.com/phoenixframework/phoenix/blob/f2e02d97ef79f825f6bbbdc2d7b69a1d005bff90/lib/phoenix/endpoint/watcher.ex)

I guess this could technically be expanded to wrap any Node/Web project if there is interest in that.


# Usage
in your `project/0` add:
```elixir
compilers: [:ex_webpack] ++ Mix.compilers,
```

if you want to run the watcher in `project/0` add:
```elixir
watch_webpack: Mix.env == :dev
```
## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `ex_webpack` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [{:ex_webpack, "~> 0.1.0", runtime: false}]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/ex_webpack](https://hexdocs.pm/ex_webpack).