logLevel
類型:'debug' | 'error' | 'info' | 'trace' | 'warn'
預設值:'info'
設定 Storybook 在瀏覽器終端機中的日誌。適用於除錯。
.storybook/main.ts
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
framework: '@storybook/your-framework',
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
logLevel: 'debug',
};
export default config;