W3cubDocs

/Phoenix

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 avoids 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

compile(input_path, output_path)

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

© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Phoenix.Digester.html