PhoenixAssetPipeline (phoenix_asset_pipeline v2.0.2)

Copy Markdown View Source

Builds and refreshes the PhoenixAssetPipeline manifest.

The manifest is built from the configured static directory and contains digested scripts, inlineable styles, compressed static assets, image sources, class mappings, and template class descriptors.

Applications usually interact with this module through Mix tasks, the PhoenixAssetPipeline.Manifest process, and the helpers imported by PhoenixAssetPipeline.HTML.Macros.

Summary

Functions

Builds a manifest from static_dir.

Returns true when the stored manifest matches the current static and template signature.

Returns the package priv directory.

Rebuilds and stores the manifest unless the current manifest is already fresh.

Returns the configured static directory as an absolute path.

Functions

build(static_dir \\ static_dir())

Builds a manifest from static_dir.

The returned manifest is a plain map suitable for PhoenixAssetPipeline.Manifest.put/1, PhoenixAssetPipeline.Manifest.save_cached/1, or PhoenixAssetPipeline.Manifest.save_precompiled!/1.

current?()

Returns true when the stored manifest matches the current static and template signature.

priv_dir!()

Returns the package priv directory.

run()

Rebuilds and stores the manifest unless the current manifest is already fresh.

static_dir()

Returns the configured static directory as an absolute path.