WebPack.Plug.Static (reaxt v4.1.2)

View Source

This plug API is the same as plug.static, but wrapped to :

  • wait file if compiling before serving them
  • add server side event endpoint for webpack build events
  • add webpack "stats" JSON getter, and stats static analyser app

Summary

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.

static_plug(conn, static_opts)

wait_compilation(conn, _)