Skip to content

Customizing the Asset Watcher

Dimitrios Zorbas edited this page Jul 15, 2018 · 3 revisions

In development assets are forwarded to webpack-dev-server.

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