View Source PhoenixImportmap.Importmap (Phoenix Importmap v0.3.0)
Provides functions for working with importmaps.
Summary
Functions
Copies importmap assets to :copy_destination_path
.
Filters an importmap based on a given asset path.
Encodes an importmap into JSON.
Maps local paths from the configured importmap to the location they are being served from.
Functions
Copies importmap assets to :copy_destination_path
.
Filters an importmap based on a given asset path.
Used to update only assets that have changed in file watching.
Encodes an importmap into JSON.
Maps local paths from the configured importmap to the location they are being served from.
- Strips
:public_asset_path_prefix
from asset paths so they may be resolved byPlug.Static
. - Uses
YourAppWeb.Endpoint.static_path/1
to determine whether to use digest URLs.