Reads config/bun.json at the project root.
BunBundle does not translate config. It reads the same file Bun does and exposes the fields Elixir helpers need. Defaults match the vendored JS bundler.
Summary
Functions
Returns the optional CDN prefix prepended to asset URLs.
Returns true when running in the :dev environment.
Returns the dev server settings from the devServer key, with defaults
applied.
Returns the active environment.
Returns the raw parsed config map, cached in persistent_term.
Returns the absolute path to bun-manifest.json.
Returns the absolute output directory for bundled assets.
Returns the URL prefix served for bundled assets.
Re-reads config/bun.json from disk and refreshes the cache.
Returns the WebSocket URL the live reload client connects to.
Functions
Returns the optional CDN prefix prepended to asset URLs.
Configured via config :bun_bundle, :asset_host, "https://cdn...".
Returns true when running in the :dev environment.
Returns the dev server settings from the devServer key, with defaults
applied.
Returns the active environment.
Configured via config :bun_bundle, :env, :dev. Falls back to Mix.env()
when Mix is available, and :prod otherwise.
Returns the raw parsed config map, cached in persistent_term.
Returns the absolute path to bun-manifest.json.
Returns the absolute output directory for bundled assets.
Returns the URL prefix served for bundled assets.
Re-reads config/bun.json from disk and refreshes the cache.
Returns the WebSocket URL the live reload client connects to.