Phoenix v1.1.3 Phoenix.Digester

Digests and compress static files.

For each file under the given input path, Phoenix will generate a digest and also compress in .gz format. The filename and its digest will be used to generate the manifest file. It also avoid duplications checking for already digested files.

For stylesheet files found under the given path, Phoenix will replace asset references with the digested paths, as long as the asset exists in the generated manifest.

Summary

Functions

Digests and compresses the static files and saves them in the given output path

Functions

compile(input_path, output_path)

Specs

compile(String.t, String.t) ::
  :ok |
  {:error, :invalid_path}

Digests and compresses the static files and saves them in the given output path.

  • input_path - The path where the assets are located
  • output_path - The path where the compiled/compressed files will be saved