mix popcorn.cook (Popcorn v0.1.0)

View Source

Generates static artifacts to run the project in the browser.

Accepts the following options:

  • out_dir - the directory to write artifacts to
  • target - wasm (default) or unix. If unix is chosed, you need to build the runtime first with mix popcorn.build_runtime --target unix

out_dir is mandatory, unless provided via config.exs, for example config :popcorn, out_dir: "static/wasm"