Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 630 Bytes

specifying-the-digest-directory.md

File metadata and controls

19 lines (14 loc) · 630 Bytes

Specifying The Digest Directory

By default, Phoenix targets priv/static when preparing digested assets for production. This process happens when running mix phx.digest.

If you are doing some custom work with your assets such that they are in a different location, you'll need to tell Phoenix where to look. To do this, just include an optional path argument.

$ mix phx.digest path/to/my/assets

The digests will be put in that target directory. If you'd like to specify a different output directory, such as priv/static, include the -o flag.

$ mix phx.digest path/to/my/assets -o priv/static