Packages
duskmoon_bundler_runtime
9.9.7
10.0.7
10.0.6
10.0.5
10.0.4
10.0.3
10.0.2
10.0.1
10.0.0
9.16.16
9.16.15
9.16.14
9.16.13
9.16.12
9.16.11
9.16.10
9.16.9
9.16.7
9.16.6
9.16.2
9.16.1
9.16.0
9.14.0
9.13.1
9.13.0
9.12.3
9.12.2
9.12.1
9.12.0
9.11.0
9.10.1
9.10.0
9.9.10
9.9.9
9.9.8
9.9.7
9.9.6
9.9.4
9.9.3
9.9.2
9.9.1
9.9.0
9.8.0
9.7.1
9.7.0
Production runtime asset resolver for DuskmoonBundler manifests.
Current section
Files
Jump to
Current section
Files
duskmoon_bundler_runtime
README.md
README.md
# Duskmoon Bundler Runtime
Production-safe asset resolver for manifests generated by `duskmoon_bundler`.
Phoenix runtime releases can depend on this package without carrying the build
and development toolchain:
```elixir
{:duskmoon_bundler_runtime, "~> 9.7"}
```
Development and production asset builds should include the build package too:
```elixir
{:duskmoon_bundler_runtime, "~> 9.7"},
{:duskmoon_bundler, "~> 9.7", runtime: Mix.env() in [:dev, :test]}
```
The runtime package owns the public template-facing APIs:
```heex
<link phx-track-static rel="stylesheet" href={DuskmoonBundler.static_path(@endpoint, "/assets/css/app.css")} />
<script defer phx-track-static type="module" src={DuskmoonBundler.static_path(@endpoint, "/assets/js/app.js")}></script>
<%= DuskmoonBundler.Preload.tags(@endpoint, "/assets/js/app.js") %>
```
It reads `manifest.json`, resolves content-hashed asset paths, and generates
modulepreload tags. It does not start dev server, watcher, HMR, Tailwind, OXC,
Vize, or QuickBEAM processes.