defmodule Mix.Tasks.Still.Compile do use Mix.Task @doc false def run(_) do Mix.Task.run("compile") Mix.Task.run("app.start") Still.Compiler.CompilationStage.subscribe() Application.put_env(:still, :url_fingerprinting, true) Application.put_env(:still, :dev_layout, false) Still.Compiler.Traverse.run() receive do :bus_empty -> :ok after :infinity -> :error end end end