Skip to content

Customizing the Asset Watcher

Dimitrios Zorbas edited this page Jan 29, 2017 · 3 revisions

In development assets are forwarded to [webpack-dev-server](https://webpack.github.io/docs/webpack-dev- server.html).

By default this server starts at localhost:8080. You may change the binding address using:

# File: config/config.exs
 
# Change the binding ip of the asset watcher server
config :kitto, assets_host: "127.0.0.1"

# Change the binding port of the asset watcher server
config :kitto, assets_port: 8080

To have the asset server independently you can have Kitto backend started with:

iex -S mix

and webpack-dev-server with:

npm run start
Clone this wiki locally