WebPack.Plug.Static (reaxt v4.0.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

Link to this section Summary

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Link to this function

static_plug(conn, static_opts)

View Source
Link to this function

wait_compilation(conn, _)

View Source