Svelixir. Config. Assets
(svelixir v0.11.0)
Copy Markdown
Which asset surfaces are generated — the assets: section.
type is the explicit selector. The api and ui blocks are detail
consulted when it selects them, never on/off switches in their own right.
Selecting :api or :both requires project.type: :web;
Svelixir.Config.Otp enforces that, since a section cannot see its siblings.
Summary
Functions
Builds this section, and any nested block, from input.
Reports whether type selects a surface that needs a Phoenix router.
Types
@type t() :: %Svelixir.Config.Assets{ api: Svelixir.Config.Assets.Api.t(), type: atom(), ui: Svelixir.Config.Assets.Ui.t() }