Skip to content

Commit

Permalink
meta: some doc improvements for storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 25, 2023
1 parent bdf2619 commit b25b51c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ const config: StorybookConfig = {
framework: { name: '@storybook/nextjs', options: {} },
webpack: async config => ({
...config,
// We want to conform as much as possible with our target settings
target: 'browserslist',
// Performance Hints do not make sense on Storybook as it is bloated by design
performance: { hints: false },
// `nodevu` is a Node.js-specific package that requires Node.js modules
// this is incompatible with Storybook. So we just mock the module
resolve: { ...config.resolve, alias: { '@nodevu/core': false } },
// Removes Pesky Critical Dependency Warnings due to `next/font`
ignoreWarnings: [e => e.message.includes('Critical dep')],
}),
};

Expand Down

0 comments on commit b25b51c

Please sign in to comment.