mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
15 lines
424 B
TypeScript
15 lines
424 B
TypeScript
import type { Configuration } from 'webpack';
|
|
|
|
export function configureNextFont(baseConfig: Configuration) {
|
|
baseConfig.plugins = [...(baseConfig.plugins || [])];
|
|
baseConfig.resolveLoader = {
|
|
...baseConfig.resolveLoader,
|
|
alias: {
|
|
...baseConfig.resolveLoader?.alias,
|
|
'storybook-nextjs-font-loader': require.resolve(
|
|
'./font/webpack/loader/storybook-nextjs-font-loader'
|
|
),
|
|
},
|
|
};
|
|
}
|