mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
8 lines
293 B
TypeScript
8 lines
293 B
TypeScript
import path from 'path';
|
|
import { serverRequire } from '@storybook/core-common';
|
|
|
|
const webpackConfigs = ['webpack.config', 'webpackfile'];
|
|
|
|
export const loadCustomWebpackConfig = (configDir: string) =>
|
|
serverRequire(webpackConfigs.map((configName) => path.resolve(configDir, configName)));
|