managerHead
¥Parent: main.js|ts configuration
类型:(head: string) => string
¥Type: (head: string) => string
以编程方式调整 Storybook 的管理器 <head>
。例如,加载自定义字体或添加脚本。最常由 插件作者 使用。
¥Programmatically adjust the manager's <head>
of your Storybook. For example, load a custom font or add a script. Most often used by addon authors.
如果你不需要以编程方式调整管理器头,则可以将脚本和样式添加到 manager-head.html
。
¥If you don't need to programmatically adjust the manager head, you can add scripts and styles to manager-head.html
instead.
例如,你可以根据环境有条件地添加脚本或样式:
¥For example, you can conditionally add scripts or styles, depending on the environment:
.storybook/main.ts