PhoenixAssets. Storybook
(PhoenixAssets v0.1.0)
View Source
Integration plugin that supervises Storybook alongside the app.
Storybook shares the app's Vite config, so it depends on the SvelteKit
integration and is ordered after Tailwind. Contributing it as a supervised dev
process is the fix for the common gap where Storybook is started by hand and
drifts from the app -- now mix phx.server brings it up and tears it down with
everything else.
Configure (or disable) it without writing a preset:
config :phoenix_assets, :dev,
storybook: [enabled: false] # or: [port: 6007, command: [...]]Preset integration/2 options provide the defaults; the :dev config wins.
Summary
Functions
Callback implementation for PhoenixAssets.Plugin.doctor_checks/2.
Callback implementation for PhoenixAssets.Plugin.generated_files/2.
Callback implementation for PhoenixAssets.Plugin.graph_entries/2.
Callback implementation for PhoenixAssets.Plugin.name/0.
Callback implementation for PhoenixAssets.Plugin.vite_config/2.
Functions
Callback implementation for PhoenixAssets.Plugin.doctor_checks/2.
Callback implementation for PhoenixAssets.Plugin.generated_files/2.
Callback implementation for PhoenixAssets.Plugin.graph_entries/2.
Callback implementation for PhoenixAssets.Plugin.name/0.
Callback implementation for PhoenixAssets.Plugin.vite_config/2.